type: fix BoolType.__repr__()

It shouldn't include self.signed.
This commit is contained in:
Omar Sandoval 2018-05-02 01:20:30 -07:00
parent 389f483dbb
commit d7236962db

View File

@ -272,6 +272,9 @@ class BoolType(IntType):
qualifiers: FrozenSet[str] = frozenset()) -> None:
super().__init__(name, size, False, qualifiers)
def __repr__(self) -> str:
return ArithmeticType.__repr__(self)
def read(self, buffer: bytes, offset: int = 0) -> bool:
if len(buffer) - offset < self.size:
raise ValueError(f'buffer must be at least {self.size} bytes')