diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-05-12 08:34:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 08:34:00 (GMT) |
commit | b2c1b4da1935639cb89fbbad0ce170a1182537bd (patch) | |
tree | 5b68de40c8c0aa71db3157e0653450206d6beb13 /Misc | |
parent | 15795b57d92ee6315b5c8263290944b16834b5f2 (diff) | |
download | cpython-b2c1b4da1935639cb89fbbad0ce170a1182537bd.zip cpython-b2c1b4da1935639cb89fbbad0ce170a1182537bd.tar.gz cpython-b2c1b4da1935639cb89fbbad0ce170a1182537bd.tar.bz2 |
gh-104389: Add 'unused' keyword to Argument Clinic C converters (#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]*/
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tools-Demos/2023-05-11-15-12-11.gh-issue-104389.EiOhB3.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tools-Demos/2023-05-11-15-12-11.gh-issue-104389.EiOhB3.rst b/Misc/NEWS.d/next/Tools-Demos/2023-05-11-15-12-11.gh-issue-104389.EiOhB3.rst new file mode 100644 index 0000000..854e1cc --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2023-05-11-15-12-11.gh-issue-104389.EiOhB3.rst @@ -0,0 +1,2 @@ +Argument Clinic C converters now accept the ``unused`` keyword, for wrapping +a parameter with :c:macro:`Py_UNUSED`. Patch by Erlend E. Aasland. |