Skip to content

Commit

Permalink
Reuse the cls variable inferred earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Oct 11, 2018
1 parent fc407ef commit 7b0b629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _arguments_infer_argname(self, name, context):
yield cls
return
if functype == "method":
yield bases.Instance(self.parent.parent.frame())
yield bases.Instance(cls)
return

if context and context.callcontext:
Expand Down

0 comments on commit 7b0b629

Please sign in to comment.