summaryrefslogtreecommitdiff
path: root/astroid/node_classes.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated nodesMarc Mueller2023-04-251-4/+1
|
* Merge branch 'maintenance/2.15.x' into mainMarc Mueller2023-04-241-0/+1
|\
| * Various TryStar fixes (#2142)Marc Mueller2023-04-241-0/+1
| |
* | [PyCQA migration] Upgrade links to the repositories in code and docPierre Sassoulas2023-03-291-2/+2
|/
* Bump flake8-bugbear from 23.1.20 to 23.2.13 (#2034)dependabot[bot]2023-02-231-0/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [flake8] Set the max line length to 110 instead of 138Pierre Sassoulas2022-09-191-1/+2
| | | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
* Simplify hard to maintain copyright notice (#1441)Pierre Sassoulas2022-03-121-0/+4
| | | | | | | | | | | | | | * Simplify hard to maintain copyright notice git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names. * Add a pre-commit hook to check the copyright notice * Fix the existing file so they have a notice * Fix the spacing after the copyright notice * Add a script to generate the CONTRIBUTORS.txt Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* 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
|