summaryrefslogtreecommitdiff
path: root/tests/unittest_brain_dataclasses.py
Commit message (Collapse)AuthorAgeFilesLines
* Restrict type inference of dataclass attributes. (#1130)David Liu2021-08-161-0/+60
| | | | | | | | | | 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 Liu2021-08-161-0/+237
* Add inference tips for dataclass attributes Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>