Skip to content

Commit 9e49475

Browse files
python/cpython#104389: Add 'unused' keyword to Argument Clinic C converters (python/cpython#104390)
Use the unused keyword param in the converter to explicitly mark an argument as unused: /*[clinic input] SomeBaseClass.stubmethod flag: bool(unused=True) [clinic start generated code]*/
1 parent 769053f commit 9e49475

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/howto/clinic.rst

+3
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,9 @@ All Argument Clinic converters accept the following arguments:
775775
because :pep:`8` mandates that the Python library may not use
776776
annotations.
777777

778+
``unused``
779+
Wrap the argument with :c:macro:`Py_UNUSED` in the impl function signature.
780+
778781
In addition, some converters accept additional arguments. Here is a list
779782
of these arguments, along with their meanings:
780783

0 commit comments

Comments
 (0)