]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104683: Modernise Argument Clinic parameter state machine (#106362)
authorErlend E. Aasland <erlend@python.org>
Mon, 3 Jul 2023 21:16:21 +0000 (23:16 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 21:16:21 +0000 (21:16 +0000)
commit71b40443fed6acb58330ee262f8d674b394f41d3
treedf83e67d69cd848a1ed8aa16b5ef8dcff8978c8a
parent77090370952307730ea71d68b848cce0dc8cbd83
gh-104683: Modernise Argument Clinic parameter state machine (#106362)

Use enums and pattern matching to make the code more readable.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Tools/clinic/clinic.py