scoped_nodes.py 958 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
  2. # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
  3. # Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
  4. # pylint: disable=unused-import
  5. import warnings
  6. from astroid.nodes.scoped_nodes import (
  7. AsyncFunctionDef,
  8. ClassDef,
  9. ComprehensionScope,
  10. DictComp,
  11. FunctionDef,
  12. GeneratorExp,
  13. Lambda,
  14. ListComp,
  15. LocalsDictNodeNG,
  16. Module,
  17. SetComp,
  18. _is_metaclass,
  19. builtin_lookup,
  20. function_to_method,
  21. get_wrapping_class,
  22. )
  23. # We cannot create a __all__ here because it would create a circular import
  24. # Please remove astroid/scoped_nodes.py|astroid/node_classes.py in autoflake
  25. # exclude when removing this file.
  26. warnings.warn(
  27. "The 'astroid.scoped_nodes' module is deprecated and will be replaced by "
  28. "'astroid.nodes' in astroid 3.0.0",
  29. DeprecationWarning,
  30. stacklevel=2,
  31. )