diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py index 694c7bc92..ed3e16f63 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py @@ -12,6 +12,7 @@ L = TypeVar('L') class uint(int): byte_len = 0 + def __new__(cls, value, *args, **kwargs): if value < 0: raise ValueError("unsigned types must not be negative")