summaryrefslogtreecommitdiff
path: root/astroid/nodes/node_classes.py
diff options
context:
space:
mode:
authorDavid Liu <david@cs.toronto.edu>2021-08-16 13:18:50 -0400
committerGitHub <noreply@github.com>2021-08-16 19:18:50 +0200
commit212990793f7182881c4583eb82bb7b071b1b1731 (patch)
tree548ce92a895405a48eff35a795ef5745e59a1a15 /astroid/nodes/node_classes.py
parent02a4c266534fb473da07ea5b905726281d06cbde (diff)
downloadastroid-git-212990793f7182881c4583eb82bb7b071b1b1731.tar.gz
Restrict type inference of dataclass attributes. (#1130)
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>
Diffstat (limited to 'astroid/nodes/node_classes.py')
0 files changed, 0 insertions, 0 deletions