Define Custom Types via function_puller

This commit is contained in:
Hsiao-Wei Wang
2019-06-15 16:57:50 -04:00
parent 8577cff72e
commit 00a68e28b5
4 changed files with 43 additions and 38 deletions

View File

@@ -51,7 +51,7 @@ class uint64(uint):
def __new__(cls, value, *args, **kwargs):
if value.bit_length() > 64:
raise ValueError("value out of bounds for uint128")
raise ValueError("value out of bounds for uint64")
return super().__new__(cls, value)