From a1e483cdcbed988b1fa92541c9861742616f6371 Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 17 Jul 2023 20:46:11 +0300 Subject: [PATCH 1/2] latest versions --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e7cfdf2..312c32d 100644 --- a/setup.py +++ b/setup.py @@ -55,8 +55,8 @@ include_package_data=True, install_requires=[ "base58", - "eth-hash>=0.1.0,<1.0.0", - "eth-typing>=1.0.0,<3.0.0", + "eth-hash", + "eth-typing", "toolz>0.8.2,<1;implementation_name=='pypy'", "cytoolz>=0.8.2,<1.0.0;implementation_name=='cpython'", ], From 37142e3960752dd3dd4fd3446e834b4ead08e975 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 25 Aug 2023 09:55:35 +0300 Subject: [PATCH 2/2] fix SyntaxWarning: "is" with a literal --- trx_utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trx_utils/decorators.py b/trx_utils/decorators.py index 7f32abe..1f29cc1 100644 --- a/trx_utils/decorators.py +++ b/trx_utils/decorators.py @@ -87,7 +87,7 @@ def wrapper(*args, **kwargs): if kwargs: _validate_supported_kwarg(kwargs) - if len(args) is 0 and "primitive" not in kwargs: + if len(args) == 0 and "primitive" not in kwargs: _assert_hexstr_or_text_kwarg_is_text_type(**kwargs) return to_wrap(*args, **kwargs)