summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Replace the constant BUILTINS by the string 'builtins'builtin-simplifiedPierre Sassoulas2021-08-1816-90/+81
| | | | | | | | This make for clearer and also sligtly faster code (means time seems to decrese by 0.68% with this change alone (astroid/pylint) in the pylint tests benchmarks). Done because we were using an import from astroid from astroid.bases for one of those, which is kinda messy.
* Fix got "Tuple[int, ...]", expected "Tuple[int]"Pierre Sassoulas2021-08-181-1/+1
|
* Fix Cannot infer type of lambdaPierre Sassoulas2021-08-181-1/+1
|
* Fix Cannot resolve name "builder" (possible cyclic definition)Pierre Sassoulas2021-08-181-3/+3
|
* Fix expression has type "str", base class "_NodeTest" defined the type as "None"Pierre Sassoulas2021-08-181-1/+1
|
* Fix variable collision in _infer_stmtsNick Drozd2021-08-181-2/+2
| | | | Was this causing any bugs? Hard to say.
* Make 4 spaces the default indent for AsStringVisitorPierre Sassoulas2021-08-162-2/+2
|
* Make BaseContainer a public APIPierre Sassoulas2021-08-165-6/+11
| | | | We keep the old name for compatibility purpose
* Fix shadowing of builtins vars in as_stringPierre Sassoulas2021-08-161-2/+2
|
* Use the AsStringVisitor directly in NodeNgPierre Sassoulas2021-08-161-2/+2
|
* Ignore a warning not relevant to the Visitor patternPierre Sassoulas2021-08-161-7/+3
|
* Move astroid.as_string to the node packagesPierre Sassoulas2021-08-163-8/+6
| | | | It's a visitor for Nodes
* Remove a typo in ExceptHandler's docstringPierre Sassoulas2021-08-161-1/+1
|
* Fix Unresolved reference 'astroid'Pierre Sassoulas2021-08-162-3/+74
|
* Add CONST_CLS and ComprehensionScope in astroid.nodes.__all__Pierre Sassoulas2021-08-161-0/+2
|
* Bump astroid to 2.7.1, update changelogv2.7.1Pierre Sassoulas2021-08-169-11/+16
|
* Restrict type inference of dataclass attributes. (#1130)David Liu2021-08-163-10/+104
| | | | | | | | | | For now, from the typing module only generic collection types are inferred: Dict, FrozenSet, List, Set, Tuple. Astroid proxies these to the built-in collection types (e.g., dict). Other type annotations from typing like Callable and Union yield Uninferable; these would need to be handled on a case by case basis. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixed import of LookupMixIn from astroid.node_classesAshley Whetter2021-08-162-0/+3
|
* Move back to a dev version following 2.7.0 releasePierre Sassoulas2021-08-152-2/+2
|
* Bump astroid to 2.7.0, update changelogv2.7.0Pierre Sassoulas2021-08-1519-26/+38
|
* Add inference tips for dataclass attributes (#1126)David Liu2021-08-166-81/+459
| | | | | * Add inference tips for dataclass attributes Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add pylintrc config for typing extension (#1128)Marc Mueller2021-08-161-0/+9
|
* Bug pylint 4060 (#1127)hippo912021-08-155-2/+60
| | | | | | * Adds a brain to handle the dynamic lazy import of the IsolatedAsyncioTestCase class in the unittest module * Calls the register_module_extender function only for python higher than 3.8 * Adds an entry for `IsolatedAsyncioTestCase` class * Suppress some useless pylint no-member pragma
* Enable some Pylint extensionsNick Drozd2021-08-142-2/+4
|
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2021-08-121-1/+1
| | | | for more information, see https://pre-commit.ci
* Remove early return in _is_enum_subclassDavid Liu2021-08-122-29/+28
|
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2021-08-122-11/+14
| | | | for more information, see https://pre-commit.ci
* Support inference of Enum subclasses.David Liu2021-08-124-9/+126
|
* Create a file for NodeNG see #587Pierre Sassoulas2021-08-113-667/+673
|
* Create a astroid.nodes.const file for constantsPierre Sassoulas2021-08-112-28/+30
|
* Remove use of deprecated node_classes and scoped_node API in astroidPierre Sassoulas2021-08-1041-370/+169
|
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-08-091-1/+1
| | | | | updates: - [github.com/asottile/pyupgrade: v2.23.1 → v2.23.3](https://github.com/asottile/pyupgrade/compare/v2.23.1...v2.23.3)
* Fix rst syntax in ReadmePierre Sassoulas2021-08-061-3/+3
|
* Fix link to the Tidelift logo and subscriptionPierre Sassoulas2021-08-061-4/+4
|
* Add an alt text for coverall badgePierre Sassoulas2021-08-061-0/+1
|
* Add 'Pattern' to the astroid.nodes's APIPierre Sassoulas2021-08-054-4/+7
|
* Create 'nodes' package, deprecate 'node_classes' and 'scoped_nodes'Pierre Sassoulas2021-08-0510-8378/+8812
| | | | | | | Add deprecation warning and retro-compatibility for old API in node_classes and scoped_nodes. To be removed in 3.0.0.
* Conditional test pickle (#935)René Fritze2021-08-053-1/+38
| | | | | | | * [tests] adds a test for conditional definition lookup * [tests] duplicate the conditional def test into a sub package * add pyMOR example code and change test to only check for Uninferable Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move back to a dev version following 2.6.6 releasePierre Sassoulas2021-08-032-2/+2
|
* Bump astroid to 2.6.6, update changelogv2.6.6Pierre Sassoulas2021-08-0318-17/+30
|
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-08-021-2/+2
| | | | | | updates: - [github.com/asottile/pyupgrade: v2.23.0 → v2.23.1](https://github.com/asottile/pyupgrade/compare/v2.23.0...v2.23.1) - [github.com/PyCQA/isort: 5.9.2 → 5.9.3](https://github.com/PyCQA/isort/compare/5.9.2...5.9.3)
* Update pylint to 2.9.6 (#1114)Marc Mueller2021-08-028-13/+10
| | | | * Update pylint to v2.9.6 * Code updates
* Improve variable lookup to handle except clause variable scopeDavid Liu2021-08-023-1/+182
|
* Improve variable lookup to handle function parameters being overwrittenDavid Liu2021-08-024-5/+142
|
* Improve variable lookup to ignore exclusive statementsDavid Liu2021-08-023-3/+286
|
* Fix incorrect scope for functools partials (#1097)Alphadelta142021-08-014-12/+47
| | | | | * Use scope parent * Do not set name onto parent frame for partials * Add test case that captures broken scopes
* Don't calculate slots when MRO parsing fails. (#1089)doranid2021-08-013-3/+28
| | | | | | | | * Don't calculate slots when MRO parsing fails. * Added changelog entry. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Infer the type of the result of calling typing.cast() (#1076)Tim Martin2021-07-303-0/+67
| | | | | * Infer the type of the result of calling typing.cast() Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#1112)pre-commit-ci[bot]2021-07-281-1/+1
| | | | | | updates: - [github.com/asottile/pyupgrade: v2.21.2 → v2.23.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.23.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Move back to a dev version following 2.6.5 releasePierre Sassoulas2021-07-212-2/+2
|