Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Pass ``doc_node`` to postinit of all ``PartialFunction`` constructors (#1437) | Daniël van Noord | 2022-03-07 | 1 | -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 Noord | 2022-03-06 | 4 | -10/+123 | |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | |||||
* | Introduce end-of-line normalization (#1443) | Pierre Sassoulas | 2022-03-04 | 1 | -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 Sassoulas | 2022-03-03 | 4 | -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 Noord | 2022-03-03 | 1 | -1/+17 | |
| | ||||||
* | Add additional tests for positions with docstrings (#1411) | Daniël van Noord | 2022-03-02 | 1 | -0/+108 | |
| | ||||||
* | Add doc_node attribute (#1276) | kasium | 2022-02-28 | 2 | -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.0 | Pierre Sassoulas | 2022-02-27 | 10 | -5/+19 | |
| | ||||||
* | Changed NodeNG.tolineno to use end_lineno when it is available (#1351) | Sergei Lebedev | 2022-02-27 | 3 | -8/+15 | |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | |||||
* | Add position attribute for nodes (#1393) | Marc Mueller | 2022-02-26 | 1 | -0/+160 | |
| | ||||||
* | Fix recursion error for inference of self-referencing class attribute (#1392) | Daniël van Noord | 2022-02-21 | 1 | -0/+38 | |
| | ||||||
* | Fix crash inferring on NewType named with f-string (#1400) | Jacob Walls | 2022-02-19 | 1 | -1/+18 | |
| | ||||||
* | Fix ``ClassDef.fromlineno`` for Python < 3.8 (#1395) | Marc Mueller | 2022-02-19 | 1 | -1/+44 | |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | |||||
* | Add regression test for changes to support hermetic interpreters (#1397) | Jacob Walls | 2022-02-16 | 1 | -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 Noord | 2022-02-13 | 1 | -0/+31 | |
| | ||||||
* | Improve order of keyword-only args in argnames() (#1387) | Jacob Walls | 2022-02-10 | 1 | -2/+12 | |
| | ||||||
* | Fix inference of ``self`` in a list or tuple within bin. ops. (#1360) | Daniël van Noord | 2022-02-08 | 1 | -0/+28 | |
| | ||||||
* | Fix crash on inference of ``__dict__.items()`` of an imported module (#1367) | Daniël van Noord | 2022-02-08 | 3 | -2/+23 | |
| | ||||||
* | Include names of keyword-only arguments in `argnames()` (#1382) | Jacob Walls | 2022-02-06 | 1 | -0/+4 | |
| | ||||||
* | Fix crash on ``Super.getattr`` for previously uninferable attributes (#1370) | Daniël van Noord | 2022-01-26 | 5 | -3/+185 | |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | |||||
* | Add regression test for #1124 (#1364) | Daniël van Noord | 2022-01-24 | 1 | -2/+45 | |
| | ||||||
* | [pre-commit.ci] auto fixes from pre-commit.com hooks | pre-commit-ci[bot] | 2022-01-20 | 1 | -3/+4 | |
| | | | | for more information, see https://pre-commit.ci | |||||
* | Add unittest for property inference postinit | areveny | 2022-01-20 | 1 | -0/+21 | |
| | ||||||
* | Add support for attrs v21.3.0+ (#1331) | Jacob Bogdanov | 2022-01-20 | 1 | -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.3 | Pierre Sassoulas | 2022-01-09 | 1 | -1/+2 | |
| | ||||||
* | Fix finding packages without an ``__init__.py`` (#1333) | Daniël van Noord | 2022-01-09 | 1 | -0/+25 | |
| | ||||||
* | Bump astroid to 2.9.2, update changelogv2.9.2 | Alexander Shadchin | 2022-01-04 | 8 | -8/+8 | |
| | ||||||
* | Bump astroid to 2.9.1, update changelogv2.9.1 | Pierre Sassoulas | 2021-12-31 | 8 | -4/+18 | |
| | ||||||
* | Remove distutils path patching (#1321) | Daniël van Noord | 2021-12-31 | 1 | -5/+0 | |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | |||||
* | Add future=True to frame calls (#1305) | Tushar Sadhwani | 2021-12-29 | 5 | -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 Sadhwani | 2021-12-29 | 1 | -0/+8 | |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | |||||
* | Fix dataclass inference for marshmallow_dataclass (#1298) | Nicolas Noirbent | 2021-12-23 | 1 | -1/+3 | |
| | ||||||
* | Create ``scoped_nodes`` module (#1302) | Daniël van Noord | 2021-12-20 | 1 | -1/+1 | |
| | ||||||
* | Make Module call the __init__ of NodeNG (#1262) | Daniël van Noord | 2021-12-16 | 1 | -0/+12 | |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | |||||
* | Fix typos (#1288) | Kian Meng, Ang | 2021-12-13 | 4 | -5/+5 | |
| | ||||||
* | Fix crash if a variable named "type" is subscripted in a generator ↵ | Jacob Walls | 2021-12-07 | 1 | -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 Drozd | 2021-11-27 | 3 | -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 Noord | 2021-11-24 | 1 | -1/+1 | |
| | ||||||
* | Add ``future`` argument to all ``NodeNG.statement()`` calls (#1235) | Daniël van Noord | 2021-11-24 | 1 | -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.0 | Pierre Sassoulas | 2021-11-21 | 3 | -3/+3 | |
| | ||||||
* | Add as_string visitor for Unknown node (#1268) | Marc Mueller | 2021-11-21 | 1 | -0/+5 | |
| | ||||||
* | Add end_lineno and end_col_offset to nodes (#1258) | Marc Mueller | 2021-11-21 | 1 | -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 Shachnev | 2021-11-21 | 1 | -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.6 | Pierre Sassoulas | 2021-11-21 | 5 | -4/+6 | |
| | ||||||
* | Add ``InferenceContext`` to ``ClassModel`` (#1257) | Daniël van Noord | 2021-11-19 | 1 | -1/+21 | |
| | ||||||
* | Remove forgotten debug ``print`` statement from tests | Daniël van Noord | 2021-11-18 | 1 | -1/+0 | |
| | ||||||
* | Skip test_oserror if six is installed (#1254) | Keichi Takahashi | 2021-11-18 | 1 | -0/+8 | |
| | ||||||
* | Filter ``DeprecationWarning`` in tests of deprecated methods | Daniël van Noord | 2021-11-18 | 1 | -0/+2 | |
| | ||||||
* | Add additional flags to ``mypy`` config and update ``type: ignore``'s (#1248) | Daniël van Noord | 2021-11-17 | 2 | -7/+7 | |
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | |||||
* | Bump astroid to 2.8.5, update changelogv2.8.5 | Pierre Sassoulas | 2021-11-12 | 4 | -5/+5 | |
| |