node_classes.py 1.5 KB

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