summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Pass ``doc_node`` to postinit of all ``PartialFunction`` constructors (#1437)Daniël van Noord2022-03-071-0/+24
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Deprecate accessing and setting the ``doc`` attribute on nodes (#1434)Daniël van Noord2022-03-064-10/+123
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Introduce end-of-line normalization (#1443)Pierre Sassoulas2022-03-041-2/+2
| | | Some file were formatted for Windows, which was a problem for #1441
* Fix F403 wildcart import used in astroid/__init__.py (#1271)Pierre Sassoulas2022-03-034-1/+4
| | | | | | | * Fix F403 wildcart import used in astroid/__init__.py And apply flake8 on setup.py and astroid/__init__.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use functools.cached_property for 3.8+ (#1417)Daniël van Noord2022-03-031-1/+17
|
* Add additional tests for positions with docstrings (#1411)Daniël van Noord2022-03-021-0/+108
|
* Add doc_node attribute (#1276)kasium2022-02-282-5/+235
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Bump astroid to 2.10.0, update changelogv2.10.0Pierre Sassoulas2022-02-2710-5/+19
|
* Changed NodeNG.tolineno to use end_lineno when it is available (#1351)Sergei Lebedev2022-02-273-8/+15
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add position attribute for nodes (#1393)Marc Mueller2022-02-261-0/+160
|
* Fix recursion error for inference of self-referencing class attribute (#1392)Daniël van Noord2022-02-211-0/+38
|
* Fix crash inferring on NewType named with f-string (#1400)Jacob Walls2022-02-191-1/+18
|
* Fix ``ClassDef.fromlineno`` for Python < 3.8 (#1395)Marc Mueller2022-02-191-1/+44
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add regression test for changes to support hermetic interpreters (#1397)Jacob Walls2022-02-161-0/+66
| | | | | | | | * Add regression test for changes to support hermetic interpreters Test for changes made in 665574122cb6302fa5342c6f3570c674fcaf0a44. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add is_dataclass attribute to ClassDef (#1391)Daniël van Noord2022-02-131-0/+31
|
* Improve order of keyword-only args in argnames() (#1387)Jacob Walls2022-02-101-2/+12
|
* Fix inference of ``self`` in a list or tuple within bin. ops. (#1360)Daniël van Noord2022-02-081-0/+28
|
* Fix crash on inference of ``__dict__.items()`` of an imported module (#1367)Daniël van Noord2022-02-083-2/+23
|
* Include names of keyword-only arguments in `argnames()` (#1382)Jacob Walls2022-02-061-0/+4
|
* Fix crash on ``Super.getattr`` for previously uninferable attributes (#1370)Daniël van Noord2022-01-265-3/+185
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add regression test for #1124 (#1364)Daniël van Noord2022-01-241-2/+45
|
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2022-01-201-3/+4
| | | | for more information, see https://pre-commit.ci
* Add unittest for property inference postinitareveny2022-01-201-0/+21
|
* Add support for attrs v21.3.0+ (#1331)Jacob Bogdanov2022-01-201-0/+67
| | | | | | | | | | | | * Add support for attrs v21.3.0+ Since version [21.3.0](https://github.com/python-attrs/attrs/releases/tag/21.3.0) you can now `import attrs` instead of just `import attr`. This patch adds support so that astroid doesn't barf on classes created using `@attrs.define`. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump astroid to 2.9.3, update changelogv2.9.3Pierre Sassoulas2022-01-091-1/+2
|
* Fix finding packages without an ``__init__.py`` (#1333)Daniël van Noord2022-01-091-0/+25
|
* Bump astroid to 2.9.2, update changelogv2.9.2Alexander Shadchin2022-01-048-8/+8
|
* Bump astroid to 2.9.1, update changelogv2.9.1Pierre Sassoulas2021-12-318-4/+18
|
* Remove distutils path patching (#1321)Daniël van Noord2021-12-311-5/+0
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add future=True to frame calls (#1305)Tushar Sadhwani2021-12-295-0/+30
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix frame() error on inferred node (#1263)Tushar Sadhwani2021-12-291-0/+8
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix dataclass inference for marshmallow_dataclass (#1298)Nicolas Noirbent2021-12-231-1/+3
|
* Create ``scoped_nodes`` module (#1302)Daniël van Noord2021-12-201-1/+1
|
* Make Module call the __init__ of NodeNG (#1262)Daniël van Noord2021-12-161-0/+12
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix typos (#1288)Kian Meng, Ang2021-12-134-5/+5
|
* Fix crash if a variable named "type" is subscripted in a generator ↵Jacob Walls2021-12-071-0/+5
| | | | | expression (#1285) Co-authored-by Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Upgrade to pylint 2.12 and enable ``for_any_all`` checker (#1277)Nick Drozd2021-11-273-7/+4
| | | | | | | | * 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
|
* Add ``future`` argument to all ``NodeNG.statement()`` calls (#1235)Daniël van Noord2021-11-241-2/+1
| | | | | | | * Add ``future`` argument to all ``NodeNG.statement()`` calls * Add typing from ``statement()`` Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Bump astroid to 2.9.0, update changelogv2.9.0Pierre Sassoulas2021-11-213-3/+3
|
* Add as_string visitor for Unknown node (#1268)Marc Mueller2021-11-211-0/+5
|
* Add end_lineno and end_col_offset to nodes (#1258)Marc Mueller2021-11-211-0/+1223
| | | | | | | | * 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-211-0/+14
| | | | | | | | | | | | | | | * 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>
* Bump astroid to 2.8.6, update changelogv2.8.6Pierre Sassoulas2021-11-215-4/+6
|
* Add ``InferenceContext`` to ``ClassModel`` (#1257)Daniël van Noord2021-11-191-1/+21
|
* 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
|
* Filter ``DeprecationWarning`` in tests of deprecated methodsDaniël van Noord2021-11-181-0/+2
|
* Add additional flags to ``mypy`` config and update ``type: ignore``'s (#1248)Daniël van Noord2021-11-172-7/+7
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Bump astroid to 2.8.5, update changelogv2.8.5Pierre Sassoulas2021-11-124-5/+5
|