summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add flake8-typing-import to the pre-commit configurationadd-flake8-typing-importPierre Sassoulas2021-11-213-3/+4
| | | | Relates to #1239
* Add as_string visitor for Unknown node (#1268)Marc Mueller2021-11-213-0/+13
|
* Add end_lineno and end_col_offset to nodes (#1258)Marc Mueller2021-11-218-187/+2951
| | | | | | | | * Add end_lineno and end_col_offset infomation * Add annotations for fields that are always None * Changelog entry Requires Python 3.8
* Always treat __class_getitem__ as a classmethod (#1266)Dmitry Shachnev2021-11-213-0/+17
| | | | | | | | | | | | | | | * Always treat __class_getitem__ as a classmethod Consider this code: class Foo: def __class_getitem__(cls, *args, **kwargs): return cls Without this change, astroid would treat cls as an instance of Foo, and thus it will think of Foo[bar] also as an instance, while really it is the same as Foo. Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Upgrade the version to 2.9.0-dev0 following 2.8.6 releasePierre Sassoulas2021-11-212-2/+2
|
* Bump astroid to 2.8.6, update changelogv2.8.6Pierre Sassoulas2021-11-2119-15/+21
|
* Fix small spelling errors (#1265)Marc Mueller2021-11-212-4/+4
|
* Add annotations for always None attributes (#1261)Marc Mueller2021-11-192-0/+13
|
* Add ``InferenceContext`` to ``ClassModel`` (#1257)Daniël van Noord2021-11-193-2/+32
|
* Remove forgotten debug ``print`` statement from testsDaniël van Noord2021-11-181-1/+0
|
* Skip test_oserror if six is installed (#1254)Keichi Takahashi2021-11-181-0/+8
|
* Change ``NoReturn`` to be encapsulated in strings (#1252)Daniël van Noord2021-11-183-6/+10
| | | | | * Change ``NoReturn`` to be encapsulated in strings Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Filter ``DeprecationWarning`` in tests of deprecated methodsDaniël van Noord2021-11-181-0/+2
|
* Add ``type: ignore`` to method reassignments (#1247)Daniël van Noord2021-11-171-19/+21
|
* Add additional flags to ``mypy`` config and update ``type: ignore``'s (#1248)Daniël van Noord2021-11-175-10/+13
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix `mypy` warnings for `astroid/builder` and `astroid/nodes/as_string` (#1246)Daniël van Noord2021-11-173-6/+9
| | | | | | | * Fix ``mypy`` warnings for ``astroid/builder`` * Fix ``mypy`` warnings for ``astroid/nodes/as_string`` * Update typing of build_namespace_package_module
* Fix ``mypy`` warnings for ``astroid/nodes/node_ng``Daniël van Noord2021-11-171-2/+3
|
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-11-151-1/+1
| | | | | updates: - [github.com/PyCQA/isort: 5.10.0 → 5.10.1](https://github.com/PyCQA/isort/compare/5.10.0...5.10.1)
* Upgrade the version to 2.8.6-dev0 following 2.8.5 releasePierre Sassoulas2021-11-122-2/+2
|
* Bump astroid to 2.8.5, update changelogv2.8.5Pierre Sassoulas2021-11-1212-12/+19
|
* More permissive version for typed-astPierre Sassoulas2021-11-122-1/+5
| | | | Closes #1237
* Improve filtering of ``NamedExpr``, particularly within ``If`` nodes (#1233)Daniël van Noord2021-11-123-3/+82
| | | | | * Improve filtering of ``NamedExpr``, particularly within ``If`` nodes Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-11-081-1/+1
| | | | | updates: - [github.com/PyCQA/isort: 5.9.3 → 5.10.0](https://github.com/PyCQA/isort/compare/5.9.3...5.10.0)
* Fix crash on inference of __len__ (#1234)Daniël van Noord2021-11-083-1/+58
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add typing and deprecation warnings to ``NodeNG.statement`` (#1217)Daniël van Noord2021-11-076-10/+120
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Small changes (#1232)Marc Mueller2021-11-064-3/+9
| | | * Based on suggestions from #1218
* [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-11-011-1/+1
| | | | | updates: - [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0)
* Move back to a dev version following 2.8.4 releasePierre Sassoulas2021-10-252-2/+2
|
* Bump astroid to 2.8.4, update changelogv2.8.4Pierre Sassoulas2021-10-2511-11/+19
|
* Refactor and add typing to ``NodeNG.frame()`` (#1225)Daniël van Noord2021-10-253-26/+96
| | | * Refactor and add typing to ``NodeNG.frame()``
* Add assignment expressions to correct ``locals`` for certain parents (#1213)Daniël van Noord2021-10-253-2/+95
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Change ``frame`` and ``scope`` of ``NamedExpr`` for certain parents (#1221)Daniël van Noord2021-10-243-0/+155
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Refactor and remove ``redefined-variable-type`` disableDaniël van Noord2021-10-243-10/+5
|
* Remove unnecessary disable from ``pylintrc`` (#1223)Daniël van Noord2021-10-241-1/+0
|
* Move skip in `ArgumentsNodeTC` to correct function (#1222)Daniël van Noord2021-10-241-3/+3
| | | | * Move skip in `ArgumentsNodeTC` to correct function
* Update brain_typing.py (#1220)Redoubts2021-10-231-1/+1
| | | Solves the specific crash in #1149
* Add test for __members__ (#1216)Joshua Cannon2021-10-211-0/+15
| | | Adding a new test which ensures the local __members__ defined on an enum class isn't used for __members__ afterwards. This matches the behavior of Python.
* Move back to a dev version following 2.8.3 releasePierre Sassoulas2021-10-172-2/+2
|
* Bump astroid to 2.8.3, update changelogv2.8.3Pierre Sassoulas2021-10-1731-30/+38
|
* Fix regression with import resolver (#1211)Daniël van Noord2021-10-1710-6/+20
| | | | | | * Fix regression with import resolver Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix crash with invalid field call (#1212)Marc Mueller2021-10-153-1/+23
|
* Revert "Fix regression with import resolver"Marc Mueller2021-10-129-14/+6
| | | | This reverts commit 02f8b1627ca488b231bb9efa8ad3e65c59fa6d83.
* Fix regression with import resolverDaniël van Noord2021-10-129-6/+14
|
* [pre-commit.ci] pre-commit autoupdate (#1210)pre-commit-ci[bot]2021-10-122-3/+3
| | | | | | | | | | | | * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1) - [github.com/pre-commit/mirrors-mypy: v0.910 → v0.910-1](https://github.com/pre-commit/mirrors-mypy/compare/v0.910...v0.910-1) * Update requirements_test_pre_commit.txt Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add recognition of previous partial args/kwargs when chaining (#1209)Craig Franklin2021-10-103-1/+44
| | | | | | | | | | | | * Add recognition of previous partial args/kwargs when chaining Repeat use of functools.partial on the same function would only keep the args & kwargs locked in by the last call to partial. By checking if the wrapped function is itself a partial, and including its filled args/kwargs if it is, we can keep track of all locked args/kwargs across any number of nested partial calls. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix style changelogMarc Mueller2021-10-071-0/+2
|
* Allow wrapt 1.13 (#1203)Michael K2021-10-072-1/+2
| | | | | * Allow wrapt 1.13 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move back to a dev version following 2.8.2 releasePierre Sassoulas2021-10-072-2/+2
|
* Bump astroid to 2.8.2, update changelogv2.8.2Pierre Sassoulas2021-10-074-4/+11
|
* Better deprecation messages for guard functions (#1205)Marc Mueller2021-10-071-2/+6
|