Skip to content

Enable explicit-override by default in strict mode #17511

Open
@johnthagen

Description

@johnthagen

Feature

Tracking issue for enabling

[tool.mypy]
enable_error_code = ["explicit-override"]

When

strict = true

Pitch

As explained in PEP 698, strict enforcement of @override has many benefits.

When the Mypy developers feel that @override usage has had enough time for adoption in the community, enabling this by default when the user opts into strict mode would be helpful.

Related Discussions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions