types.py 327 B

1234567891011121314
  1. # flake8: noqa: F405
  2. from types import * # noqa: F403
  3. from .compat_utils import passthrough_module
  4. passthrough_module(__name__, 'types')
  5. del passthrough_module
  6. try:
  7. # NB: pypy has builtin NoneType, so checking NameError won't work
  8. from types import NoneType # >= 3.10
  9. except ImportError:
  10. NoneType = type(None)