Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
For base classes, it is not unusual to create stubs for interface methods, and let those stubs simply raise an exception. It would be nice to be able to mark the arguments with Py_UNUSED in those cases.
Implementing this is straight-forward in clinic.py. CConverter get's a new keyword argumentunused which defaults toFalse, and we can write code like this:
/*[clinic input]_io._TextIOBase.read cls: defining_class size: int(unused=True) = -1[clinic start generated code]*/