diff options
Diffstat (limited to 'Lib/numbers.py')
-rw-r--r-- | Lib/numbers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/numbers.py b/Lib/numbers.py index c72a23d..827c253 100644 --- a/Lib/numbers.py +++ b/Lib/numbers.py @@ -15,6 +15,8 @@ class Number(metaclass=ABCMeta): If you just want to check if an argument x is a number, without caring what kind, use isinstance(x, Number). """ + # Concrete numeric types must provide their own hash implementation + __hash__ = None ## Notes on Decimal |