summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump astroid to 2.9.1, update changelogv2.9.1Pierre Sassoulas2021-12-3133-29/+72
|
* Remove distutils path patching (#1321)Daniël van Noord2021-12-313-12/+4
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add typing to ``brain_dataclasses`` (#1292)Daniël van Noord2021-12-291-28/+44
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add future=True to frame calls (#1305)Tushar Sadhwani2021-12-2912-22/+54
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Revert "Revert "Remove useless NoReturn in NodeNG.statement's typing ↵Tushar Sadhwani2021-12-291-6/+1
| | | | | (#1304)" (#1307)" (#1319) This reverts commit 7b049a163cc704955a4260992302ff755f6a6789.
* Fix frame() error on inferred node (#1263)Tushar Sadhwani2021-12-295-7/+34
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix node.statement overload typing - default argument (#1317)Marc Mueller2021-12-292-2/+4
|
* [pre-commit.ci] pre-commit autoupdate (#1315)pre-commit-ci[bot]2021-12-281-1/+1
| | | | | | updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix spelling (#1318)Marc Mueller2021-12-281-1/+1
|
* Bump ci cache version (#1314)Marc Mueller2021-12-271-1/+1
|
* Revert "Remove useless NoReturn in NodeNG.statement's typing (#1304)" (#1307)Marc Mueller2021-12-271-1/+6
| | | This reverts commit df854be56ee5019fb7f578ffd4da068e46ed112a.
* Fix dataclass inference for marshmallow_dataclass (#1298)Nicolas Noirbent2021-12-233-3/+13
|
* Upgrade mypy to 0.930 (#1310)Marc Mueller2021-12-232-2/+2
|
* Fix node.statement overload typing (#1308)Marc Mueller2021-12-222-4/+4
|
* Move ``_filter_stmts`` into its own file (#1303)Daniël van Noord2021-12-203-225/+240
| | | | | | | | We need access to all types of nodes in _filter_stmts. Not only those in node_classes (the file in which it was defined). This change shows that by moving _filter_stmts into its own file we can import the nodes module and access all of them. This will allow to fix some issue with it. I have tried to keep the change as minimal as possible and only changed how we refer to nodes.
* Remove useless NoReturn in NodeNG.statement's typing (#1304)Tushar Sadhwani2021-12-201-6/+1
|
* Create ``scoped_nodes`` module (#1302)Daniël van Noord2021-12-203-1/+42
|
* Upgrade mypy to 0.920 (#1300)Marc Mueller2021-12-162-2/+2
|
* Add typing to ``_ast`` (#1296)Daniël van Noord2021-12-161-14/+11
|
* Make Module call the __init__ of NodeNG (#1262)Daniël van Noord2021-12-163-5/+18
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Revert "Add stubs for ``setuptools`` and ``typed-ast`` to dependencies (#1294)"Daniël van Noord2021-12-161-3/+0
| | | | This reverts commit 37ce8bbf427b07b319a7a9d0289136579bf9f9c3.
* Add stubs for ``setuptools`` and ``typed-ast`` to dependencies (#1294)Daniël van Noord2021-12-151-0/+3
|
* Upgrade pylint to 2.12.2 (#1297)Pierre Sassoulas2021-12-155-6/+6
| | | | | | | | | * Upgrade pylint to 2.12.2 * Default Python in the CI is now python 3.8 * Remove useless suppression for python 3.8 * Disable no-member for false positive with zipimport
* Fix incorrect typing of optional default valuesDaniël van Noord2021-12-154-7/+14
|
* Prefer using the module loader to get source in builder. (#1207)Gregory P. Smith2021-12-152-1/+15
| | | | | | | | | * Use loader.get_source() in builder.module_build() Otherwise we fail to get the module source code when running in an embedded hermetic interpreter environment where the source does not live on a filesystem. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add typing to ``_normalize_path`` and ``_cache_normalize_path`` (#1291)Daniël van Noord2021-12-151-2/+5
|
* Add typing to ``brain_typing`` (#1293)Daniël van Noord2021-12-151-8/+8
|
* Resolve symlinks in the import path (#1253)Keichi Takahashi2021-12-152-10/+19
| | | | | | | | * Resolve symlinks in the import path * Drop expanduser() from _normalize_path() and add note Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add mypy ignores and docstrings to ``modutils`` and ``util.py``Daniël van Noord2021-12-142-4/+8
|
* Remove unused code - TreeRebuilder docstring (#1289)Marc Mueller2021-12-131-5/+1
|
* Fix typos (#1288)Kian Meng, Ang2021-12-1313-15/+15
|
* Add parameter typing to ``assigned_stmts`` (#1249)Daniël van Noord2021-12-082-12/+155
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix crash if a variable named "type" is subscripted in a generator ↵Jacob Walls2021-12-073-1/+10
| | | | | expression (#1285) Co-authored-by Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#1286)pre-commit-ci[bot]2021-12-061-2/+2
| | | | | | | updates: - [github.com/psf/black: 21.11b1 → 21.12b0](https://github.com/psf/black/compare/21.11b1...21.12b0) - [github.com/pre-commit/mirrors-prettier: v2.5.0 → v2.5.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.5.0...v2.5.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix typing of Arguments.args (#1283)Daniël van Noord2021-12-052-2/+9
|
* [pre-commit.ci] pre-commit autoupdate (#1279)pre-commit-ci[bot]2021-11-291-1/+1
| | | | | | updates: - [github.com/pre-commit/mirrors-prettier: v2.4.1 → v2.5.0](https://github.com/pre-commit/mirrors-prettier/compare/v2.4.1...v2.5.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update pylintrc (#1278)Marc Mueller2021-11-281-4/+4
|
* Upgrade to pylint 2.12 and enable ``for_any_all`` checker (#1277)Nick Drozd2021-11-2710-40/+24
| | | | | | | | * Enable for_any_all check * Upgrade to pylint 2.12 in pre-commit configuration * Fix new Pylint warnings * Upgrade the regex for Mixin Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Change order of decorators in tests (#1275)Daniël van Noord2021-11-241-1/+1
|
* Fix ``mypy`` warnings for ``astroid/rebuilder`` (#1244)Daniël van Noord2021-11-242-4/+11
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add ``future`` argument to all ``NodeNG.statement()`` calls (#1235)Daniël van Noord2021-11-247-19/+35
| | | | | | | * Add ``future`` argument to all ``NodeNG.statement()`` calls * Add typing from ``statement()`` Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#1274)pre-commit-ci[bot]2021-11-221-2/+2
| | | | | | | updates: - [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1) - [github.com/psf/black: 21.10b0 → 21.11b1](https://github.com/psf/black/compare/21.10b0...21.11b1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Fix deque.insert() signature (#1272)John Belmonte2021-11-222-1/+5
| | | fixes #1260
* Require Python 3.6.2 (#1269)Marc Mueller2021-11-212-1/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add flake8-typing-import to the pre-commit configuration (#1240)Pierre Sassoulas2021-11-213-3/+4
| | | | | Relates to #1239 Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Resolve dependency conflicts with pylint (#1270)Marc Mueller2021-11-212-1/+4
|
* Upgrade the version to 2.9.1-dev0 following 2.9.0 releasePierre Sassoulas2021-11-212-2/+2
|
* Bump astroid to 2.9.0, update changelogv2.9.0Pierre Sassoulas2021-11-216-6/+18
|
* 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