diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-01-12 17:01:08 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-01-12 17:01:08 +0100 |
commit | 9222f6360a4dd9ebe89c6f40d1cc7fc03eb00221 (patch) | |
tree | 8ea570ff6e97f27b648c8f72a628afb962afc0fc | |
parent | 061aaebea2be2d21831ef687cc4ba4a25d953c65 (diff) | |
download | astroid-git-9222f6360a4dd9ebe89c6f40d1cc7fc03eb00221.tar.gz |
Fix unbound local error caused by 061aaebea2be2d21831ef687cc4ba4a25d953c65
-rw-r--r-- | astroid/node_classes.py | 2 | ||||
-rw-r--r-- | astroid/rebuilder.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index c57f5686..c9f75225 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -1395,7 +1395,7 @@ class Arguments(mixins.AssignTypeMixin, NodeNG): # - we expose 'annotation', a list with annotations for # for each normal argument. If an argument doesn't have an # annotation, its value will be None. - + # pylint: disable=too-many-instance-attributes _astroid_fields = ( "args", "defaults", diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index 6cb36f67..0190fdec 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -224,6 +224,7 @@ class TreeRebuilder: type_comment_kwonlyargs = [ self.check_type_comment(child, parent=newnode) for child in node.kwonlyargs ] + type_comment_posonlyargs = [] if PY38: type_comment_posonlyargs = [ self.check_type_comment(child, parent=newnode) |