This commit is contained in:
pukkandan 2023-07-22 10:17:36 +05:30
parent e705738338
commit 25b6e8f946
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -7,6 +7,7 @@ passthrough_module(__name__, 'types')
del passthrough_module del passthrough_module
try: try:
NoneType # >= 3.10 # NB: pypy has builtin NoneType, so checking NameError won't work
except NameError: from types import NoneType # >= 3.10
except ImportError:
NoneType = type(None) NoneType = type(None)