Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Milestone
Description
I have confused myself several times (and have seen it happenmany times with other people) by something like this not working, but also not raising a warning or exception:
plt.contour(image, color='green', linestyle='dotted')
The fact that the keywords are not plural in this case is quite pedantic, but the real issue is that there are not even any warnings or errors, so users are left having no idea why this doesn't work, and are left frustrated when they do find out.
So I would suggest either:
- raise an exception for non-used keyword arguments (not ideal because it still makes it very pedantic)
- emit a warning and fix the keyword to the plural version
- simply accept the singular keywords and just pass them to the plural ones, raising an error if the plural one is defined too.