8000 gh-108455: peg_generator: make the mypy config slightly stricter by AlexWaygood · Pull Request #108627 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-108455: peg_generator: make the mypy config slightly stricter #108627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 29, 2023

Conversation

AlexWaygood
Copy link
Member
@AlexWaygood AlexWaygood commented Aug 29, 2023

This picks some low-hanging fruit when it comes to the mypy config, enabling various stricter settings that don't require large code changes:

  • Enable --no-explicit-reexport
  • Enable the truthy-bool and ignore-without-code error codes
  • Explicitly note in our config file that --warn-unreachable can't yet be enabled. (It would take several code changes before we could enable it; it's deferred for now.)

@AlexWaygood AlexWaygood enabled auto-merge (squash) August 29, 2023 11:19
@AlexWaygood AlexWaygood merged commit 0d140b8 into python:main Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0