scoped_nodes.py 704 B

1234567891011121314151617181920212223242526272829
  1. # pylint: disable=unused-import
  2. import warnings
  3. from astroid.nodes.scoped_nodes import (
  4. AsyncFunctionDef,
  5. ClassDef,
  6. ComprehensionScope,
  7. DictComp,
  8. FunctionDef,
  9. GeneratorExp,
  10. Lambda,
  11. ListComp,
  12. LocalsDictNodeNG,
  13. Module,
  14. SetComp,
  15. _is_metaclass,
  16. builtin_lookup,
  17. function_to_method,
  18. get_wrapping_class,
  19. )
  20. # We cannot create a __all__ here because it would create a circular import
  21. # Please remove astroid/scoped_nodes.py|astroid/node_classes.py in autoflake
  22. # exclude when removing this file.
  23. warnings.warn(
  24. "The 'astroid.scoped_nodes' module is deprecated and will be replaced by 'astroid.nodes' in astroid 3.0.0",
  25. DeprecationWarning,
  26. )