-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
is_disabler: do not flatten positional args #15122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This is a behavior change that is absolutely going to break someone's build. And of course, there isn't an obvious way (in my mind) to fix this because of the way disablers are handled. |
It's actually not a breaking change because |
The use-case here is something like that:
|
Note there is a subtle workaround: |
Oh, well if it already fails because the list gets flattened, then that seems fine. I retract my objections. Some docs would be nice, but otherwise seems fine. |
Added doc for the behavior with a list argument. Also added a FeatureNew. |
It appears this change breaks a test that explicitly assumes summary() can take a dictionary with elements that are disablers. |
is_disabler() must not flatten its arguments otherwise is_disabler([foo, bar]) gets converted to is_disabler(foo, bar) and we allow only a single positional argument.
Hm, I fear this change could have too many unforeseen consequences like that. I changed this PR to not change the behavior of |
I intentionally left |
No description provided.