Closed
Description
Feature or enhancement
Now that we have mypy
infrastructure ready https://github.com/python/cpython/blob/main/.github/workflows/mypy.yml we can add more things to the test.
https://github.com/python/cpython/tree/main/Tools/peg_generator has mypy.ini
and annotations. So, let's check it as well.
How I plan to do it (separate PRs):
- Start small with the CI job itself and initial fixes
- Add
types-setuptools
dependency and fix more problems - Update config to be stricter and refactor
Linked PRs
- gh-108455: Run
mypy
onTools/peg_generator
#108456 - gh-108455: Simplify the peg_generator mypy config #108620
- gh-108455: peg_generator: make the mypy config slightly stricter #108627
- gh-108455: Use
strict_optional=True
forgrammar_parser
#108629 - gh-108455: peg_generator: install two stubs packages before running mypy #108637
- gh-108455: peg_generator: use
types-setuptools==68.1.0.1
in CI #108697 - gh-108455: peg_generator: enable mypy's
--warn-unreachable
setting andredundant-expr
error code #109160