]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104050: Add more type hints to Argument Clinic DSLParser() (#106343)
authorErlend E. Aasland <erlend@python.org>
Sun, 2 Jul 2023 23:42:38 +0000 (01:42 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Jul 2023 23:42:38 +0000 (23:42 +0000)
commit569887aa9da0da2eb2e2ad7d6a7496290f223ab0
treefea92a0a05ce7e8df9b4780fa0fbaf5127e521f6
parent4e3aa7cd312759922556ee96aa42033c375027e2
gh-104050: Add more type hints to Argument Clinic DSLParser() (#106343)

Annotate the following method signatures:

- state_dsl_start()
- state_parameter_docstring_start()
- state_parameters_start()

Inverting ignore_line() logic, add type hints (including type guard) to
it, and rename to valid_line().
Tools/clinic/clinic.py