Skip to content

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

Open
@wyattscarpenter

Description

@wyattscarpenter

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...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions