We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e343351 commit e351d4dCopy full SHA for e351d4d
mypyc/irbuild/mapper.py
@@ -142,9 +142,9 @@ def fdef_to_sig(self, fdef: FuncDef) -> FuncSignature:
142
# the sole way that FuncDecl arguments are tracked. This is
143
# generally fine except in some cases (like for computing
144
# init_sig) we need to produce FuncSignatures from a
145
- # deserialized FuncDef that lacks arguments. We won't ever
146
- # need to use those inside of a FuncIR, so we just make up
147
- # some crap.
+ # deserialized FuncDef where arguments is the empty list. We
+ # won't ever need to use those inside of a FuncIR, so we just
+ # make up some crap.
148
if fdef.arguments:
149
arg_names = [arg.variable.name for arg in fdef.arguments]
150
else:
0 commit comments