node_classes.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.node_classes import ( # pylint: disable=redefined-builtin (Ellipsis)
  7. CONST_CLS,
  8. AnnAssign,
  9. Arguments,
  10. Assert,
  11. Assign,
  12. AssignAttr,
  13. AssignName,
  14. AsyncFor,
  15. AsyncWith,
  16. Attribute,
  17. AugAssign,
  18. Await,
  19. BaseContainer,
  20. BinOp,
  21. BoolOp,
  22. Break,
  23. Call,
  24. Compare,
  25. Comprehension,
  26. Const,
  27. Continue,
  28. Decorators,
  29. DelAttr,
  30. Delete,
  31. DelName,
  32. Dict,
  33. DictUnpack,
  34. Ellipsis,
  35. EmptyNode,
  36. EvaluatedObject,
  37. ExceptHandler,
  38. Expr,
  39. ExtSlice,
  40. For,
  41. FormattedValue,
  42. Global,
  43. If,
  44. IfExp,
  45. Import,
  46. ImportFrom,
  47. Index,
  48. JoinedStr,
  49. Keyword,
  50. List,
  51. LookupMixIn,
  52. Match,
  53. MatchAs,
  54. MatchCase,
  55. MatchClass,
  56. MatchMapping,
  57. MatchOr,
  58. MatchSequence,
  59. MatchSingleton,
  60. MatchStar,
  61. MatchValue,
  62. Name,
  63. NamedExpr,
  64. NodeNG,
  65. Nonlocal,
  66. Pass,
  67. Pattern,
  68. Raise,
  69. Return,
  70. Set,
  71. Slice,
  72. Starred,
  73. Subscript,
  74. TryExcept,
  75. TryFinally,
  76. TryStar,
  77. Tuple,
  78. UnaryOp,
  79. Unknown,
  80. While,
  81. With,
  82. Yield,
  83. YieldFrom,
  84. are_exclusive,
  85. const_factory,
  86. unpack_infer,
  87. )
  88. # We cannot create a __all__ here because it would create a circular import
  89. # Please remove astroid/scoped_nodes.py|astroid/node_classes.py in autoflake
  90. # exclude when removing this file.
  91. warnings.warn(
  92. "The 'astroid.node_classes' module is deprecated and will be replaced by "
  93. "'astroid.nodes' in astroid 3.0.0",
  94. DeprecationWarning,
  95. stacklevel=2,
  96. )