123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- # Copyright (c) 2006-2011, 2013 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
- # Copyright (c) 2010 Daniel Harding <dharding@gmail.com>
- # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com>
- # Copyright (c) 2014 Google, Inc.
- # Copyright (c) 2015-2016 Ceridwen <ceridwenv@gmail.com>
- # Copyright (c) 2016 Jared Garst <jgarst@users.noreply.github.com>
- # Copyright (c) 2017 Ashley Whetter <ashley@awhetter.co.uk>
- # Copyright (c) 2017 rr- <rr-@sakuya.pl>
- # Copyright (c) 2018 Bryce Guinta <bryce.paul.guinta@gmail.com>
- # Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
- # Copyright (c) 2021 Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
- # Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com>
- # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
- # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
- """Every available node class.
- .. seealso::
- :doc:`ast documentation <green_tree_snakes:nodes>`
- All nodes inherit from :class:`~astroid.nodes.node_classes.NodeNG`.
- """
- # Nodes not present in the builtin ast module: DictUnpack, Unknown, and EvaluatedObject.
- from astroid.nodes.node_classes import ( # pylint: disable=redefined-builtin (Ellipsis)
- CONST_CLS,
- AnnAssign,
- Arguments,
- Assert,
- Assign,
- AssignAttr,
- AssignName,
- AsyncFor,
- AsyncWith,
- Attribute,
- AugAssign,
- Await,
- BaseContainer,
- BinOp,
- BoolOp,
- Break,
- Call,
- Compare,
- Comprehension,
- Const,
- Continue,
- Decorators,
- DelAttr,
- Delete,
- DelName,
- Dict,
- DictUnpack,
- Ellipsis,
- EmptyNode,
- EvaluatedObject,
- ExceptHandler,
- Expr,
- ExtSlice,
- For,
- FormattedValue,
- Global,
- If,
- IfExp,
- Import,
- ImportFrom,
- Index,
- JoinedStr,
- Keyword,
- List,
- Match,
- MatchAs,
- MatchCase,
- MatchClass,
- MatchMapping,
- MatchOr,
- MatchSequence,
- MatchSingleton,
- MatchStar,
- MatchValue,
- Name,
- NamedExpr,
- NodeNG,
- Nonlocal,
- Pass,
- Pattern,
- Raise,
- Return,
- Set,
- Slice,
- Starred,
- Statement,
- Subscript,
- TryExcept,
- TryFinally,
- Tuple,
- UnaryOp,
- Unknown,
- While,
- With,
- Yield,
- YieldFrom,
- are_exclusive,
- const_factory,
- unpack_infer,
- )
- from astroid.nodes.scoped_nodes import (
- AsyncFunctionDef,
- ClassDef,
- ComprehensionScope,
- DictComp,
- FunctionDef,
- GeneratorExp,
- Lambda,
- ListComp,
- LocalsDictNodeNG,
- Module,
- SetComp,
- builtin_lookup,
- function_to_method,
- get_wrapping_class,
- )
- _BaseContainer = BaseContainer # TODO Remove for astroid 3.0
- ALL_NODE_CLASSES = (
- _BaseContainer,
- BaseContainer,
- AnnAssign,
- Arguments,
- Assert,
- Assign,
- AssignAttr,
- AssignName,
- AsyncFor,
- AsyncFunctionDef,
- AsyncWith,
- Attribute,
- AugAssign,
- Await,
- BinOp,
- BoolOp,
- Break,
- Call,
- ClassDef,
- Compare,
- Comprehension,
- ComprehensionScope,
- Const,
- const_factory,
- Continue,
- Decorators,
- DelAttr,
- Delete,
- DelName,
- Dict,
- DictComp,
- DictUnpack,
- Ellipsis,
- EmptyNode,
- EvaluatedObject,
- ExceptHandler,
- Expr,
- ExtSlice,
- For,
- FormattedValue,
- FunctionDef,
- GeneratorExp,
- Global,
- If,
- IfExp,
- Import,
- ImportFrom,
- Index,
- JoinedStr,
- Keyword,
- Lambda,
- List,
- ListComp,
- LocalsDictNodeNG,
- Match,
- MatchAs,
- MatchCase,
- MatchClass,
- MatchMapping,
- MatchOr,
- MatchSequence,
- MatchSingleton,
- MatchStar,
- MatchValue,
- Module,
- Name,
- NamedExpr,
- NodeNG,
- Nonlocal,
- Pass,
- Pattern,
- Raise,
- Return,
- Set,
- SetComp,
- Slice,
- Starred,
- Subscript,
- TryExcept,
- TryFinally,
- Tuple,
- UnaryOp,
- Unknown,
- While,
- With,
- Yield,
- YieldFrom,
- )
- __all__ = (
- "AnnAssign",
- "are_exclusive",
- "Arguments",
- "Assert",
- "Assign",
- "AssignAttr",
- "AssignName",
- "AsyncFor",
- "AsyncFunctionDef",
- "AsyncWith",
- "Attribute",
- "AugAssign",
- "Await",
- "BinOp",
- "BoolOp",
- "Break",
- "builtin_lookup",
- "Call",
- "ClassDef",
- "CONST_CLS",
- "Compare",
- "Comprehension",
- "ComprehensionScope",
- "Const",
- "const_factory",
- "Continue",
- "Decorators",
- "DelAttr",
- "Delete",
- "DelName",
- "Dict",
- "DictComp",
- "DictUnpack",
- "Ellipsis",
- "EmptyNode",
- "EvaluatedObject",
- "ExceptHandler",
- "Expr",
- "ExtSlice",
- "For",
- "FormattedValue",
- "FunctionDef",
- "function_to_method",
- "GeneratorExp",
- "get_wrapping_class",
- "Global",
- "If",
- "IfExp",
- "Import",
- "ImportFrom",
- "Index",
- "JoinedStr",
- "Keyword",
- "Lambda",
- "List",
- "ListComp",
- "LocalsDictNodeNG",
- "Match",
- "MatchAs",
- "MatchCase",
- "MatchClass",
- "MatchMapping",
- "MatchOr",
- "MatchSequence",
- "MatchSingleton",
- "MatchStar",
- "MatchValue",
- "Module",
- "Name",
- "NamedExpr",
- "NodeNG",
- "Nonlocal",
- "Pass",
- "Raise",
- "Return",
- "Set",
- "SetComp",
- "Slice",
- "Starred",
- "Statement",
- "Subscript",
- "TryExcept",
- "TryFinally",
- "Tuple",
- "UnaryOp",
- "Unknown",
- "unpack_infer",
- "While",
- "With",
- "Yield",
- "YieldFrom",
- )
|