diff --git a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py index 9424e9bd3..7f20284a8 100644 --- a/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py +++ b/test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py @@ -6,6 +6,7 @@ from typing_inspect import get_origin # SSZ integers # ----------------------------- + class uint(int): byte_len = 0 @@ -23,6 +24,7 @@ class uint8(uint): raise ValueError("value out of bounds for uint8") return super().__new__(cls, value) + # Alias for uint8 byte = NewType('byte', uint8)