aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-18Add license, metadata, and OWNERS files.HEADndk-r26dndk-r26cndk-r26bndk-r26-rc1ndk-r26-beta1ndk-r26ndk-r25cndk-r25bndk-r25-beta4ndk-r25-beta3ndk-r25-beta2ndk-r25-beta1ndk-r25ndk-r24-rc1ndk-r24ndk-r27-releasendk-r26-releasendk-r25-releasendk-r24-releasemastermainDan Albert
Test: None Bug: http://b/206146298 Change-Id: I49ad18056d3a65aacb1952655490d6bb3060913c
2021-11-18Merge upstream tag v2.8.5.Dan Albert
Test: None Bug: http://b/206146298 Change-Id: I55aacf3277a53dfe052b063818b9a18b9977ad32
2021-11-18Initial empty repositoryRoman Yepishev
2021-11-12Bump astroid to 2.8.5, update changelogPierre Sassoulas
2021-11-12More permissive version for typed-astPierre Sassoulas
Closes #1237
2021-11-12Improve filtering of ``NamedExpr``, particularly within ``If`` nodes (#1233)Daniël van Noord
* Improve filtering of ``NamedExpr``, particularly within ``If`` nodes Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-11-08[pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]
updates: - [github.com/PyCQA/isort: 5.9.3 → 5.10.0](https://github.com/PyCQA/isort/compare/5.9.3...5.10.0)
2021-11-08Fix crash on inference of __len__ (#1234)Daniël van Noord
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-11-07Add typing and deprecation warnings to ``NodeNG.statement`` (#1217)Daniël van Noord
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-11-06Small changes (#1232)Marc Mueller
* Based on suggestions from #1218
2021-11-01[pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]
updates: - [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0)
2021-10-25Move back to a dev version following 2.8.4 releasePierre Sassoulas
2021-10-25Bump astroid to 2.8.4, update changelogPierre Sassoulas
2021-10-25Refactor and add typing to ``NodeNG.frame()`` (#1225)Daniël van Noord
* Refactor and add typing to ``NodeNG.frame()``
2021-10-25Add assignment expressions to correct ``locals`` for certain parents (#1213)Daniël van Noord
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-10-24Change ``frame`` and ``scope`` of ``NamedExpr`` for certain parents (#1221)Daniël van Noord
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-10-24Refactor and remove ``redefined-variable-type`` disableDaniël van Noord
2021-10-24Remove unnecessary disable from ``pylintrc`` (#1223)Daniël van Noord
2021-10-24Move skip in `ArgumentsNodeTC` to correct function (#1222)Daniël van Noord
* Move skip in `ArgumentsNodeTC` to correct function
2021-10-23Update brain_typing.py (#1220)Redoubts
Solves the specific crash in #1149
2021-10-21Add test for __members__ (#1216)Joshua Cannon
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.
2021-10-17Move back to a dev version following 2.8.3 releasePierre Sassoulas
2021-10-17Bump astroid to 2.8.3, update changelogPierre Sassoulas
2021-10-17Fix regression with import resolver (#1211)Daniël van Noord
* 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>
2021-10-15Fix crash with invalid field call (#1212)Marc Mueller
2021-10-12Revert "Fix regression with import resolver"Marc Mueller
This reverts commit 02f8b1627ca488b231bb9efa8ad3e65c59fa6d83.
2021-10-12Fix regression with import resolverDaniël van Noord
2021-10-12[pre-commit.ci] pre-commit autoupdate (#1210)pre-commit-ci[bot]
* [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>
2021-10-10Add recognition of previous partial args/kwargs when chaining (#1209)Craig Franklin
* 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>
2021-10-07Fix style changelogMarc Mueller
2021-10-07Allow wrapt 1.13 (#1203)Michael K
* Allow wrapt 1.13 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-10-07Move back to a dev version following 2.8.2 releasePierre Sassoulas
2021-10-07Bump astroid to 2.8.2, update changelogPierre Sassoulas
2021-10-07Better deprecation messages for guard functions (#1205)Marc Mueller
2021-10-06Move back to a dev version following 2.8.1 releasePierre Sassoulas
2021-10-06Bump astroid to 2.8.1, update changelogPierre Sassoulas
2021-10-06Fix regression introduced by #1186 and add tests (#1204)Daniël van Noord
This closes #1200
2021-10-06Deprecate ``is_typing_guard`` and ``is_sys_guard`` (#1202)Pierre Sassoulas
* Deprecate is_typing_guard and is_sys_guard References #1199 Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-10-05Use 3.10 for Github actions (#1198)Marc Mueller
* Use 3.10 for Github actions Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-10-05Fix ``relative-beyond-top-level`` false positive (#1186)Daniël van Noord
* Fix ``relative-beyond-top-level`` false positive
2021-10-05Bug pylint 4326 (#1183)hippo91
* Adds unittest dealing with class subscript * Adds support of type hints inside numpy's brains * Adds unit test to check astroid does not crash if numpy is not available
2021-10-05[pre-commit.ci] pre-commit autoupdate (#1197)pre-commit-ci[bot]
updates: - [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-29Improve brain for typing.Callable + typing.Type (#1192)Marc Mueller
2021-09-29Feature / Bug Fix: Brain for the stdlib signal module (#1172)SupImDos
* Added brain for stdlib signal module, for dynamically generated IntEnums. * Added static definitions for Signals, Handlers and Sigmasks enums. * Moved sys.platform checks outside of generated code. * Added note to brain_signal docstring. * Added unit tests for brain_signal.py.
2021-09-28continuing #839: Extend attrs brain to support provisional APIs (#1187)Jonathan Striebel
* Extend attrs brain to support provisional APIs See https://www.attrs.org/en/stable/api.html?highlight=field#provisional-apis Co-authored-by: Tamir Bahar <tbahar@vdoo.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-09-28[pre-commit.ci] pre-commit autoupdate (#1191)pre-commit-ci[bot]
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-25Remove deprecation warning raised by own astroid code (#1190)Pierre Sassoulas
Following comment here: https://github.com/PyCQA/astroid/issues/1072\#issuecomment-925471310
2021-09-25Bug pylint 4960 (#1176)hippo91
* Revert modifications of PR 1148. While it is probably still a good idea to prevent nodes that are dynamically imported to be inferred through an astroid's brain, the way it was done in builder.py was incorrect. The way it was done, lead to prevent the use of astroid legetimate brains even for node that was not dynamically loaded. * Adds a brain to infer the numpy.ma.masked_where function Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-09-21Fix regression on Compare node inference (#1185)Daniël van Noord
This deals with PyCQA/pylint#5048
2021-09-20[pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]
updates: - [github.com/psf/black: 21.8b0 → 21.9b0](https://github.com/psf/black/compare/21.8b0...21.9b0) - [github.com/pre-commit/mirrors-prettier: v2.4.0 → v2.4.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.4.0...v2.4.1)