You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./stdlib/3/builtins.pyi:585:56: Y011 Default values for typed arguments must be "..."
./stdlib/3/builtins.pyi:585:56: B008 Do not perform calls in argument defaults. The call is performed only once at function definition time. All calls to your function will reuse the result of that definition-time call. If this is intended, assign the function call to a module-level variable and use that variable as a default value.
The calls in default is fine, since tuple() is not mutable though.
Activity
ltworf commentedon May 3, 2018
It can be called with
So I think the type should be:
ltworf commentedon May 3, 2018
Seems I did some mistake
./stdlib/3/builtins.pyi:585:56: Y011 Default values for typed arguments must be "..."
./stdlib/3/builtins.pyi:585:56: B008 Do not perform calls in argument defaults. The call is performed only once at function definition time. All calls to your function will reuse the result of that definition-time call. If this is intended, assign the function call to a module-level variable and use that variable as a default value.
The calls in default is fine, since tuple() is not mutable though.
Add __new__ to tuple stub (#2092)
Add __new__ to tuple stub (python#2092)
add __new__ to tuple in python2
add __new__ to tuple in python2
add __new__ to tuple in python2 (#2304)
Add __new__ to tuple stub (python#2092)
add __new__ to tuple in python2 (python#2304)