Skip to content

Enable explicit-override by default in strict mode #17511

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions