]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104389: Add 'unused' keyword to Argument Clinic C converters (#104390)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Fri, 12 May 2023 08:34:00 +0000 (10:34 +0200)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 08:34:00 +0000 (10:34 +0200)
commitb2c1b4da1935639cb89fbbad0ce170a1182537bd
tree5b68de40c8c0aa71db3157e0653450206d6beb13
parent15795b57d92ee6315b5c8263290944b16834b5f2
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]*/
Doc/howto/clinic.rst
Lib/test/test_clinic.py
Misc/NEWS.d/next/Tools-Demos/2023-05-11-15-12-11.gh-issue-104389.EiOhB3.rst [new file with mode: 0644]
Tools/clinic/clinic.py