From f3a517b6f62c1dc24291ece031addc7cfe6758fe Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 1 Jun 2019 02:32:11 +0200 Subject: [PATCH] fix minor lint problems --- test_libs/pyspec/eth2spec/utils/ssz/ssz_typing.py | 2 ++ 1 file changed, 2 insertions(+) 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)