We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc139d commit ccabef7Copy full SHA for ccabef7
tools/boilerplate.py
@@ -317,9 +317,12 @@ def format_value(value):
317
argspec = join_with.join(text_wrapper.wrap(argspec))
318
319
# A gensym-like facility in case some function takes an
320
- # argument named washold, ax, or ret
+ # argument named washold or ret
321
washold, ret = 'washold', 'ret'
322
bad = set(args) | {varargs, varkw}
323
+ if 'ax' is set(args):
324
+ raise RuntimeError("Can not wrap this function it has `ax` "
325
+ "as explicit arg")
326
while washold in bad or ret in bad:
327
washold = 'washold' + str(random.randrange(10 ** 12))
328
ret = 'ret' + str(random.randrange(10 ** 12))
0 commit comments