Skip to content

Commit eed4283

Browse files
authored
[LABS-345] Update hsms to 0.3.2 (#20289)
* Update `hsms` to 0.3.2 * Repin in pyproject.toml * Remove unintentional changes * actually undo?
1 parent a5dcb44 commit eed4283

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

chia/_tests/wallet/test_clvm_streamable.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import dataclasses
4-
from typing import Optional
54

65
import pytest
76
from chia_rs.sized_bytes import bytes32
@@ -74,18 +73,17 @@ def test_nested_serialization() -> None:
7473
assert json_deserialize_with_clvm_streamable("ffff86696e73696465ffff613180ffff613180", OutsideCLVM) == instance_clvm
7574

7675

77-
# TODO: Fix underlying hsms to handle UnionType
7876
@streamable
7977
@dataclasses.dataclass(frozen=True)
8078
class Compound(Streamable):
81-
optional: Optional[BasicCLVMStreamable] # noqa: UP045
79+
optional: BasicCLVMStreamable | None
8280
list: list[BasicCLVMStreamable]
8381

8482

8583
@clvm_streamable
8684
@dataclasses.dataclass(frozen=True)
8785
class CompoundCLVM(Streamable):
88-
optional: Optional[BasicCLVMStreamable] # noqa: UP045
86+
optional: BasicCLVMStreamable | None
8987
list: list[BasicCLVMStreamable]
9088

9189

poetry.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand.
1+
# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand.
22

33
[[package]]
44
name = "aiofiles"
@@ -1628,19 +1628,19 @@ test = ["coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.
16281628

16291629
[[package]]
16301630
name = "hsms"
1631-
version = "0.3.1"
1631+
version = "0.3.2"
16321632
description = "Hardware security module simulator for chia bls12_381 signatures"
16331633
optional = false
16341634
python-versions = "*"
16351635
groups = ["main"]
16361636
files = [
1637-
{file = "hsms-0.3.1-py3-none-any.whl", hash = "sha256:d05a5598751f856b126d2fa6606f70c975304e7ab707dd7092b1ac2eed6267ec"},
1638-
{file = "hsms-0.3.1.tar.gz", hash = "sha256:22ee883399cba0e153a5194b11e04c93348cafef899ad5b34905a8ea60a167e0"},
1637+
{file = "hsms-0.3.2-py3-none-any.whl", hash = "sha256:b6facaf7f3673b6a479ba18c7078892bee8b9b9c4b4a1efb9c785b43a6d6886c"},
1638+
{file = "hsms-0.3.2.tar.gz", hash = "sha256:7b6ce24d8825680a18e7546b4573e594029f265dcccfb16e3c3fe373faee4b71"},
16391639
]
16401640

16411641
[package.dependencies]
1642-
chia-base = ">=0.1.5"
1643-
chialisp-puzzles = ">=0.1.1"
1642+
chia_base = ">=0.1.5"
1643+
chialisp_puzzles = ">=0.1.1"
16441644
segno = "1.4.1"
16451645

16461646
[package.extras]
@@ -4023,4 +4023,4 @@ upnp = ["miniupnpc"]
40234023
[metadata]
40244024
lock-version = "2.1"
40254025
python-versions = ">=3.10, <4"
4026-
content-hash = "edb127cc571dcd3f5502a841d36e0c9938e6ee9e3d628002bd72584e28f34d71"
4026+
content-hash = "2db7770d36c327a240a239fbc37f37a7e4a1652af1a76bf789b901edea9af56f"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ zstd = [
8181
{version=">=1.5.5.1", python = ">=3.12", source="chia"},
8282
]
8383
importlib-resources = ">=6.4.5"
84-
hsms = ">=0.3.1"
84+
hsms = ">=0.3.2"
8585
aiohttp_cors = { version = ">=0.7.0", optional = true }
8686
build = { version = ">=1.2.1", optional = true }
8787
coverage = { version = ">=7.6.4", optional = true }

0 commit comments

Comments
 (0)