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
We have uses of *args and **args being forwarded in our codebase. They occur like
defself.call(*args)new(*args).callend
or
defself.call(**args)new(**args).callend
I ideally want them to both be collapsed into
defself.call(...)new(...).callend
I wanted to enable Style/ArgumentsForwarding to prefer using ... instead, however, I found that enabling Style/ArgumentsForwarding did not catch replacing *args with .... I then tried it with the configuration option AllowOnlyRestArgument: false on the cop and then *args are suggested to be replaced with ....
I could not find an option that suggests replacing **args with ....
The text was updated successfully, but these errors were encountered:
We have uses of
*args
and**args
being forwarded in our codebase. They occur likeor
I ideally want them to both be collapsed into
I wanted to enable
Style/ArgumentsForwarding
to prefer using...
instead, however, I found that enablingStyle/ArgumentsForwarding
did not catch replacing*args
with...
. I then tried it with the configuration optionAllowOnlyRestArgument: false
on the cop and then*args
are suggested to be replaced with...
.I could not find an option that suggests replacing
**args
with...
.The text was updated successfully, but these errors were encountered: