-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
pm.sample does not warn when using an unused argument is passed #3226
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
Comments
We should remove |
Would you prefer that to throwing errors when unused arguments are passed? I think it would be easy to support one or the other, but not both. |
I think @fonnesbeck is right here. It'd be better API wise - by being clearer as a user - to remove |
Either way, it would be good to warn the user when an unused argument is passed, including for example passing |
@fonnesbeck what about This issue is related to #3197 |
Unifying them under |
Description of your problem
This code raises no exception or warning despite
core
andtarget_accept
are unused arguments. This code won't have the intended effect and is hard to debug. The desired behaviour would be to raise a warning or an exception when unused arguments are passed.For the record, the corrected code is:
Versions and main components
The text was updated successfully, but these errors were encountered: