diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-11-14 10:52:22 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-11-14 11:12:42 +0100 |
commit | 78d5537b6a40a5d4f5f80bad7ba567ff716d728a (patch) | |
tree | 61cc764762498fea0a8d452afe77381b88b654c1 /astroid/protocols.py | |
parent | 20a7ae5de32f716c8d7a4f5bbcd071bf353df4b2 (diff) | |
download | astroid-git-78d5537b6a40a5d4f5f80bad7ba567ff716d728a.tar.gz |
Allow inferring positional only arguments on Python 3.8
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r-- | astroid/protocols.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index c1825f1d..8b682e48 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -314,11 +314,11 @@ nodes.AssignAttr.assigned_stmts = assend_assigned_stmts def _arguments_infer_argname(self, name, context): # arguments information may be missing, in which case we can't do anything # more - if not (self.args or self.vararg or self.kwarg): + if not (self.arguments or self.vararg or self.kwarg): yield util.Uninferable return # first argument of instance/class method - if self.args and getattr(self.args[0], "name", None) == name: + if self.arguments and getattr(self.arguments[0], "name", None) == name: functype = self.parent.type cls = self.parent.parent.scope() is_metaclass = isinstance(cls, nodes.ClassDef) and cls.type == "metaclass" |