Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix the signature of ``infer_call_result`` | Daniel van Noord | 2023-04-25 | 1 | -1/+3 |
| | |||||
* | Drop support for Python 3.7 (#2137) | Marc Mueller | 2023-04-23 | 1 | -7/+1 |
| | |||||
* | Fix constructor in dataclass brain | Daniël van Noord | 2023-04-23 | 1 | -0/+2 |
| | |||||
* | Fix constructors of ``Call`` | Daniël van Noord | 2023-04-04 | 1 | -1/+1 |
| | |||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc | Pierre Sassoulas | 2023-03-29 | 1 | -2/+2 |
| | |||||
* | Upgrade pre-commit configuration and move to ruff (#2057) | Pierre Sassoulas | 2023-03-14 | 1 | -1/+1 |
| | |||||
* | Create ``UninferableBase`` | Daniël van Noord | 2023-02-05 | 1 | -3/+3 |
| | |||||
* | Fix order of overwritten attributes in inherited dataclasses (#1970) | Daniël van Noord | 2023-01-17 | 1 | -24/+49 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Initial pass with ``pydocstringformatter`` | Daniël van Noord | 2023-01-09 | 1 | -5/+7 |
| | |||||
* | Handle kw_only=True in dataclass fields | Daniël van Noord | 2022-12-27 | 1 | -14/+25 |
| | |||||
* | Handle init=False with defaults in dataclasses (#1898) | Daniël van Noord | 2022-12-27 | 1 | -19/+45 |
| | |||||
* | Handle properties in dataclasses correctly | Daniël van Noord | 2022-12-07 | 1 | -0/+19 |
| | |||||
* | Fix regression in the creation of the ``__init__`` of dataclasses (#1812) | Daniël van Noord | 2022-10-04 | 1 | -27/+42 |
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Fixed the ``__init__`` of ``dataclassess`` with multiple inheritance (#1774) | Daniël van Noord | 2022-09-07 | 1 | -20/+42 |
| | |||||
* | Fix crash in ``dataclass`` brain (#1770) | Daniël van Noord | 2022-09-06 | 1 | -66/+66 |
| | |||||
* | Parse default values in ``dataclass`` attributes correctly (#1771) | Daniël van Noord | 2022-09-06 | 1 | -4/+1 |
| | |||||
* | Fix crash in ``dataclass`` brain (#1768) | Daniël van Noord | 2022-09-06 | 1 | -1/+3 |
| | |||||
* | Handle ``dataclass`` ``kw_only`` keyword correctly (#1764) | Daniël van Noord | 2022-09-05 | 1 | -34/+67 |
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> | ||||
* | Don't add ``KW_ONLY`` fields to dataclass fields (#1746) | Daniël van Noord | 2022-08-22 | 1 | -2/+16 |
| | |||||
* | Update typing for Python 3.7 (2) (#1556) | Marc Mueller | 2022-05-13 | 1 | -1/+2 |
| | |||||
* | Update typing for Python 3.7 (1) (#1555) | Marc Mueller | 2022-05-13 | 1 | -6/+9 |
| | |||||
* | Require Python 3.7.2 (#1542) | Jacob Walls | 2022-05-10 | 1 | -15/+14 |
| | |||||
* | Simplify hard to maintain copyright notice (#1441) | Pierre Sassoulas | 2022-03-12 | 1 | -0/+2 |
| | | | | | | | | | | | | | | * Simplify hard to maintain copyright notice git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names. * Add a pre-commit hook to check the copyright notice * Fix the existing file so they have a notice * Fix the spacing after the copyright notice * Add a script to generate the CONTRIBUTORS.txt Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Add is_dataclass attribute to ClassDef (#1391) | Daniël van Noord | 2022-02-13 | 1 | -0/+1 |
| | |||||
* | Add typing to ``brain_dataclasses`` (#1292) | Daniël van Noord | 2021-12-29 | 1 | -28/+44 |
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Fix dataclass inference for marshmallow_dataclass (#1298) | Nicolas Noirbent | 2021-12-23 | 1 | -2/+7 |
| | |||||
* | Add ``future`` argument to all ``NodeNG.statement()`` calls (#1235) | Daniël van Noord | 2021-11-24 | 1 | -1/+1 |
| | | | | | | | * Add ``future`` argument to all ``NodeNG.statement()`` calls * Add typing from ``statement()`` Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> | ||||
* | Refactor and remove ``redefined-variable-type`` disable | Daniël van Noord | 2021-10-24 | 1 | -4/+4 |
| | |||||
* | Fix crash with invalid field call (#1212) | Marc Mueller | 2021-10-15 | 1 | -0/+1 |
| | |||||
* | Support dataclass inference for pydantic.dataclasses. | David Liu | 2021-09-17 | 1 | -7/+6 |
| | |||||
* | Fix all R6201: Consider using set for membership | Pierre Sassoulas | 2021-09-17 | 1 | -2/+2 |
| | | | | Following the upgrade to pylint 2.11.1 | ||||
* | Fix crash on datafields (#1165) | Daniël van Noord | 2021-09-13 | 1 | -2/+10 |
| | | | | | | | | | | | | | | | * Fix crash on datafields Fixes the crash reported at PyCQA/pylint#4963 Tests added there. * Change to ``if not`` * Update astroid/brain/brain_dataclasses.py * Add tests * Update and merge test * Use ``raise UseInferenceDefault`` | ||||
* | Relax dataclass filter for Uninferable nodes. (#1144) | David Liu | 2021-08-27 | 1 | -33/+40 |
| | | | | | | | Now, any Uninferable node that looks like "dataclass" or "<expr>.dataclass" will be treated as a dataclass decorator. This supports pydantic.dataclasses.dataclass, as this value is currently Uninferable. | ||||
* | Add filter for abc.collections in dataclass inference | David Liu | 2021-08-22 | 1 | -0/+1 |
| | |||||
* | Generate synthetic __init__ method for dataclasses | David Liu | 2021-08-20 | 1 | -25/+176 |
| | |||||
* | Restrict type inference of dataclass attributes. (#1130) | David Liu | 2021-08-16 | 1 | -10/+39 |
| | | | | | | | | | | For now, from the typing module only generic collection types are inferred: Dict, FrozenSet, List, Set, Tuple. Astroid proxies these to the built-in collection types (e.g., dict). Other type annotations from typing like Callable and Union yield Uninferable; these would need to be handled on a case by case basis. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Add inference tips for dataclass attributes (#1126) | David Liu | 2021-08-16 | 1 | -33/+211 |
| | | | | | * Add inference tips for dataclass attributes Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Remove use of deprecated node_classes and scoped_node API in astroid | Pierre Sassoulas | 2021-08-10 | 1 | -2/+2 |
| | |||||
* | Fix copyright links (#1084) | Marc Mueller | 2021-07-01 | 1 | -1/+1 |
| | | | | * Fix link in license header * Fix link to cpython | ||||
* | Simplification because AstroidManager is a singleton/borg | Pierre Sassoulas | 2021-06-19 | 1 | -2/+4 |
| | |||||
* | Create a file for the global manager defined in astroid.__init__.py | Pierre Sassoulas | 2021-06-19 | 1 | -1/+1 |
| | |||||
* | Import directly from modules in astroid.brain.* | Pierre Sassoulas | 2021-06-19 | 1 | -12/+18 |
| | |||||
* | Add an isort configuration in setup.cfg and apply it | Pierre Sassoulas | 2021-04-19 | 1 | -1/+0 |
| | | | | Except on astroid/__init__.py because of circular imports | ||||
* | Fix issue #891 | Pierre Sassoulas | 2021-04-10 | 1 | -1/+1 |
| | | | | Remove outdated COPYING and rename COPYING.LESSER | ||||
* | Don't transform dataclass ClassVars (#914) | Marc Mueller | 2021-02-28 | 1 | -0/+12 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | A transform for the builtin `dataclasses` module was added. | Claudiu Popa | 2019-09-26 | 1 | -0/+50 |
This should address various `dataclasses` issues that were surfaced even more after the release of pylint 2.4.0. In the previous versions of `astroid`, annotated assign nodes were allowed to be retrieved via `getattr()` but that no longer happens with the latest `astroid` release, as those attribute are not actual attributes, but rather virtual ones, thus an operation such as `getattr()` does not make sense for them. |