Commit 35828d66 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 2c591190
...@@ -1046,12 +1046,8 @@ class DefNode(FuncDefNode): ...@@ -1046,12 +1046,8 @@ class DefNode(FuncDefNode):
desc, self.name, len(self.args), expected_str)) desc, self.name, len(self.args), expected_str))
def signature_has_nongeneric_args(self): def signature_has_nongeneric_args(self):
has_generic_args = self.entry.signature.has_generic_args
argcount = len(self.args) argcount = len(self.args)
if argcount == 0: if argcount == 0 or (argcount == 1 and self.args[0].is_self_arg):
return 0
elif argcount == 1:
if self.args[0].is_self_arg:
return 0 return 0
return 1 return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment