Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace the constant BUILTINS by the string 'builtins'builtin-simplified | Pierre Sassoulas | 2021-08-18 | 16 | -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 Sassoulas | 2021-08-18 | 1 | -1/+1 |
| | |||||
* | Fix Cannot infer type of lambda | Pierre Sassoulas | 2021-08-18 | 1 | -1/+1 |
| | |||||
* | Fix Cannot resolve name "builder" (possible cyclic definition) | Pierre Sassoulas | 2021-08-18 | 1 | -3/+3 |
| | |||||
* | Fix expression has type "str", base class "_NodeTest" defined the type as "None" | Pierre Sassoulas | 2021-08-18 | 1 | -1/+1 |
| | |||||
* | Fix variable collision in _infer_stmts | Nick Drozd | 2021-08-18 | 1 | -2/+2 |
| | | | | Was this causing any bugs? Hard to say. | ||||
* | Make 4 spaces the default indent for AsStringVisitor | Pierre Sassoulas | 2021-08-16 | 2 | -2/+2 |
| | |||||
* | Make BaseContainer a public API | Pierre Sassoulas | 2021-08-16 | 5 | -6/+11 |
| | | | | We keep the old name for compatibility purpose | ||||
* | Fix shadowing of builtins vars in as_string | Pierre Sassoulas | 2021-08-16 | 1 | -2/+2 |
| | |||||
* | Use the AsStringVisitor directly in NodeNg | Pierre Sassoulas | 2021-08-16 | 1 | -2/+2 |
| | |||||
* | Ignore a warning not relevant to the Visitor pattern | Pierre Sassoulas | 2021-08-16 | 1 | -7/+3 |
| | |||||
* | Move astroid.as_string to the node packages | Pierre Sassoulas | 2021-08-16 | 3 | -8/+6 |
| | | | | It's a visitor for Nodes | ||||
* | Remove a typo in ExceptHandler's docstring | Pierre Sassoulas | 2021-08-16 | 1 | -1/+1 |
| | |||||
* | Fix Unresolved reference 'astroid' | Pierre Sassoulas | 2021-08-16 | 2 | -3/+74 |
| | |||||
* | Add CONST_CLS and ComprehensionScope in astroid.nodes.__all__ | Pierre Sassoulas | 2021-08-16 | 1 | -0/+2 |
| | |||||
* | Bump astroid to 2.7.1, update changelogv2.7.1 | Pierre Sassoulas | 2021-08-16 | 9 | -11/+16 |
| | |||||
* | Restrict type inference of dataclass attributes. (#1130) | David Liu | 2021-08-16 | 3 | -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_classes | Ashley Whetter | 2021-08-16 | 2 | -0/+3 |
| | |||||
* | Move back to a dev version following 2.7.0 release | Pierre Sassoulas | 2021-08-15 | 2 | -2/+2 |
| | |||||
* | Bump astroid to 2.7.0, update changelogv2.7.0 | Pierre Sassoulas | 2021-08-15 | 19 | -26/+38 |
| | |||||
* | Add inference tips for dataclass attributes (#1126) | David Liu | 2021-08-16 | 6 | -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 Mueller | 2021-08-16 | 1 | -0/+9 |
| | |||||
* | Bug pylint 4060 (#1127) | hippo91 | 2021-08-15 | 5 | -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 extensions | Nick Drozd | 2021-08-14 | 2 | -2/+4 |
| | |||||
* | [pre-commit.ci] auto fixes from pre-commit.com hooks | pre-commit-ci[bot] | 2021-08-12 | 1 | -1/+1 |
| | | | | for more information, see https://pre-commit.ci | ||||
* | Remove early return in _is_enum_subclass | David Liu | 2021-08-12 | 2 | -29/+28 |
| | |||||
* | [pre-commit.ci] auto fixes from pre-commit.com hooks | pre-commit-ci[bot] | 2021-08-12 | 2 | -11/+14 |
| | | | | for more information, see https://pre-commit.ci | ||||
* | Support inference of Enum subclasses. | David Liu | 2021-08-12 | 4 | -9/+126 |
| | |||||
* | Create a file for NodeNG see #587 | Pierre Sassoulas | 2021-08-11 | 3 | -667/+673 |
| | |||||
* | Create a astroid.nodes.const file for constants | Pierre Sassoulas | 2021-08-11 | 2 | -28/+30 |
| | |||||
* | Remove use of deprecated node_classes and scoped_node API in astroid | Pierre Sassoulas | 2021-08-10 | 41 | -370/+169 |
| | |||||
* | [pre-commit.ci] pre-commit autoupdate | pre-commit-ci[bot] | 2021-08-09 | 1 | -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 Readme | Pierre Sassoulas | 2021-08-06 | 1 | -3/+3 |
| | |||||
* | Fix link to the Tidelift logo and subscription | Pierre Sassoulas | 2021-08-06 | 1 | -4/+4 |
| | |||||
* | Add an alt text for coverall badge | Pierre Sassoulas | 2021-08-06 | 1 | -0/+1 |
| | |||||
* | Add 'Pattern' to the astroid.nodes's API | Pierre Sassoulas | 2021-08-05 | 4 | -4/+7 |
| | |||||
* | Create 'nodes' package, deprecate 'node_classes' and 'scoped_nodes' | Pierre Sassoulas | 2021-08-05 | 10 | -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é Fritze | 2021-08-05 | 3 | -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 release | Pierre Sassoulas | 2021-08-03 | 2 | -2/+2 |
| | |||||
* | Bump astroid to 2.6.6, update changelogv2.6.6 | Pierre Sassoulas | 2021-08-03 | 18 | -17/+30 |
| | |||||
* | [pre-commit.ci] pre-commit autoupdate | pre-commit-ci[bot] | 2021-08-02 | 1 | -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 Mueller | 2021-08-02 | 8 | -13/+10 |
| | | | | * Update pylint to v2.9.6 * Code updates | ||||
* | Improve variable lookup to handle except clause variable scope | David Liu | 2021-08-02 | 3 | -1/+182 |
| | |||||
* | Improve variable lookup to handle function parameters being overwritten | David Liu | 2021-08-02 | 4 | -5/+142 |
| | |||||
* | Improve variable lookup to ignore exclusive statements | David Liu | 2021-08-02 | 3 | -3/+286 |
| | |||||
* | Fix incorrect scope for functools partials (#1097) | Alphadelta14 | 2021-08-01 | 4 | -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) | doranid | 2021-08-01 | 3 | -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 Martin | 2021-07-30 | 3 | -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-28 | 1 | -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 release | Pierre Sassoulas | 2021-07-21 | 2 | -2/+2 |
| |