Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[docs] Include a real listing of the flags strict enables in the online documentation #19062

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

wyattscarpenter
Copy link
Contributor

Fixes #19061

Currently, https://mypy.readthedocs.io/en/stable/command_line.html just says

You can see the list of flags enabled by strict mode in the full mypy --help output.

Which makes cross-referencing the documentation difficult. Instead, there should be the same list there as appears when running mypy --help: eg

--warn-unused-configs, --disallow-any-generics,
--disallow-subclassing-any, --disallow-untyped-
calls, --disallow-untyped-defs, --disallow-
incomplete-defs, --check-untyped-defs, --disallow-
untyped-decorators, --warn-redundant-casts,
--warn-unused-ignores, --warn-return-any, --no-
implicit-reexport, --strict-equality, --extra-
checks

Ideally this section would be automatically generated from the code.

This pull request accomplishes this.

Copy link
Contributor

github-actions bot commented May 9, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@wyattscarpenter wyattscarpenter marked this pull request as ready for review May 9, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should include a real listing of the flags strict enables in the online documentation.
1 participant