Skip to content

Should include a real listing of the flags strict enables in the online documentation. #19061

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
wyattscarpenter opened this issue May 9, 2025 · 0 comments · May be fixed by #19062
Open

Comments

@wyattscarpenter
Copy link
Contributor

Documentation

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, so it never gets out of sync, but I am having a hard time figuring out where such generating code would go...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant