summaryrefslogtreecommitdiff
path: root/astroid/node_classes.py
Commit message (Collapse)AuthorAgeFilesLines
* Make BaseContainer a public APIPierre Sassoulas2021-08-161-1/+1
| | | | We keep the old name for compatibility purpose
* Fixed import of LookupMixIn from astroid.node_classesAshley Whetter2021-08-161-0/+1
|
* Add 'Pattern' to the astroid.nodes's APIPierre Sassoulas2021-08-051-0/+1
|
* Create 'nodes' package, deprecate 'node_classes' and 'scoped_nodes'Pierre Sassoulas2021-08-051-5341/+89
| | | | | | | Add deprecation warning and retro-compatibility for old API in node_classes and scoped_nodes. To be removed in 3.0.0.
* Bump astroid to 2.6.6, update changelogv2.6.6Pierre Sassoulas2021-08-031-1/+3
|
* Update pylint to 2.9.6 (#1114)Marc Mueller2021-08-021-2/+1
| | | | * Update pylint to v2.9.6 * Code updates
* Improve variable lookup to handle except clause variable scopeDavid Liu2021-08-021-1/+12
|
* Improve variable lookup to handle function parameters being overwrittenDavid Liu2021-08-021-4/+13
|
* Improve variable lookup to ignore exclusive statementsDavid Liu2021-08-021-3/+12
|
* Fix incorrect scope for functools partials (#1097)Alphadelta142021-08-011-10/+2
| | | | | * Use scope parent * Do not set name onto parent frame for partials * Add test case that captures broken scopes
* Bump astroid to 2.6.4, update changelogPierre Sassoulas2021-07-201-1/+1
|
* Bump astroid to 2.6.3, update changelogv2.6.3Pierre Sassoulas2021-07-191-1/+1
|
* Add new If guard helper methods (#1099)Marc Mueller2021-07-131-0/+37
| | | | | * Add new if guard helper methods Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove pylint useless-suppressionMarc Mueller2021-07-111-1/+0
|
* Fix issues when inferring match variables (#1093)Marc Mueller2021-07-101-4/+35
| | | | | | | * Fix issues when inferring match variables * Fix extract_node for MatchCase * Typing improvements * Fix pylint issues (no-name-in-module) * Use PY310_PLUS instead of sys.version_info
* Fix copyright links (#1084)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Fix link to cpython
* Catch the StopIteration that result from PEP-479 or add default value in ↵Pierre Sassoulas2021-06-301-2/+2
| | | | | | | | | ``next`` (#1081) * Catch the StopIteration that result from PEP-479 StopIteration exceptions raised directly or indirectly in coroutines and generators are transformed into RuntimeError exceptions for python 3.7+.
* Bump astroid to 2.6.1, update changelogv2.6.1Pierre Sassoulas2021-06-291-1/+1
|
* Create a constant for BUILTINS in astroid.constantsPierre Sassoulas2021-06-261-4/+1
|
* Bump astroid to 2.6.0, update changelogv2.6.0Pierre Sassoulas2021-06-221-1/+1
|
* Remove default init values Arguments + fix raw_building (#1065)Marc Mueller2021-06-211-5/+5
| | | | | | * Arguments - remove default init values * Fix raw_building.build_function * Use Arguments.postinit * Add kwonlyargs
* Type annotations for nodes 11 (#1063)Marc Mueller2021-06-201-128/+75
| | | | | * Arguments * Remove duplicate type annotation for Match nodes * Small changes
* Type annotations for nodes 10 (#1061)Marc Mueller2021-06-191-73/+130
| | | | * Decorators, TryExcept, TryFinally, NamedExpr, EvaluatedObject * Remove additional default values from Match nodes
* Simplification because AstroidManager is a singleton/borgPierre Sassoulas2021-06-191-4/+4
|
* Type annotations for nodes 09 (#1056)Marc Mueller2021-06-191-61/+58
| | | * AssignName, DelName, Name, AssignAttr, DelAtr
* Type annotations for nodes 08Marc Mueller2021-06-191-96/+168
| | | | * Tuple, UnaryOp, While, With, Yield, FormattedValue, JoinedStr
* Add context type hintsMarc Mueller2021-06-191-21/+10
|
* Remove Optional annotation if parameter is required (#1051)Marc Mueller2021-06-191-10/+10
|
* Fix all no-member in the codebase and enable the warningPierre Sassoulas2021-06-181-27/+11
|
* Remove useless-suppression that apppeared suddenlyPierre Sassoulas2021-06-181-8/+3
|
* Type annotations for nodes 07 (#1048)Marc Mueller2021-06-181-73/+110
| | | * Nonlocal, Raise, Return, Slice, Starred, Subscript
* Type annotations for nodes 06 (#1047)Marc Mueller2021-06-181-83/+103
| | | * Import, ImportFrom, If, IfExp, Keyword, List
* Type annotations for nodes 05 (#1046)Marc Mueller2021-06-181-83/+120
| | | * ExceptHandler, For, Await, Attribute, Global
* Type annotations for nodes 04 (#1044)Marc Mueller2021-06-171-69/+88
| | | * Comprehension, Const, Delete, Dict, Expr
* Type annotations for nodes 03 (#1042)Marc Mueller2021-06-171-86/+99
| | | * BinOp, BoolOp, Call, Compare
* Type annotations for nodes 02 (#1041)Marc Mueller2021-06-171-70/+102
|
* Add keyword arguments to super callMarc Mueller2021-06-171-1/+1
|
* Start adding type annotations to node_classesMarc Mueller2021-06-171-63/+37
|
* Add Pattern base class (#1037)Marc Mueller2021-06-161-34/+26
|
* Add MultiLineBlockMixin to MatchCase (#1038)Marc Mueller2021-06-161-1/+2
|
* Bump astroid to 2.6.0-dev0, update changelogPierre Sassoulas2021-06-161-2/+2
|
* Import exceptions from astroid.exceptions to avoid circular importsPierre Sassoulas2021-06-151-21/+29
|
* Update Match nodes to be internally consistent (#1033)Marc Mueller2021-06-151-52/+120
|
* Small fix + improvements to Match nodes (#1032)Marc Mueller2021-06-151-65/+13
| | | | | | | * Fix MatchClass fields * Add types to Match fields * Remove unnecessary Match get_children methods * Fix test variable name * Add tests for Match get_children
* Deprecate Index and ExtSlice nodes (#1026)Marc Mueller2021-06-131-43/+4
|
* Deprecate Ellipsis node (#1025)Marc Mueller2021-06-131-16/+3
|
* Remove py2 nodes (#1023)Marc Mueller2021-06-121-126/+0
| | | | * Removed Repr, Exec, Print nodes * Updated rebuilder
* Add missing type annotations for Match nodes (#1021)Marc Mueller2021-06-121-2/+2
|
* Prepare for 2.5.8 release (#1013)v2.5.8Pierre Sassoulas2021-06-071-1/+2
|
* Performance improvements to counter context.clone slowdown (#1009)Andrew Haigh2021-06-071-2/+7
| | | | | | | | | | | | | | | * Add limit to the total number of nodes inferred per context This change abuses mutable references to create a sort of interior mutable cell shared between a context and all of its clones. The idea is that when a node is inferred at the toplevel, it is called with context = None, creating a new InferenceContext and starting a count from zero. However, when a context is cloned we re-use the cell and cause the count in the "parent" context to be incremented when nodes are inferred in the "child" context. * Add global inference cache * Update safe_infer to catch StopIteration