Skip to content

disallow-untyped-defs vs disallow_incomplete_defs doc inconsistency #9963

Closed
@ravwojdyla

Description

@ravwojdyla

https://mypy.readthedocs.io/en/stable/config_file.html#confval-disallow_untyped_defs says:

Disallows defining functions without type annotations or with incomplete type annotations.

Notice the extra or with incomplete type annotations.

and https://mypy.readthedocs.io/en/stable/config_file.html#confval-disallow_incomplete_defs says:

Disallows defining functions with incomplete type annotations.

While https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-disallow-untyped-defs says:

This flag reports an error whenever it encounters a function definition without type annotations.

and https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-disallow-incomplete-defs says:

This flag reports an error whenever it encounters a partly annotated function definition.

I believe the version from command_line doc is the correct one, and config_file doc should be updated.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions