Skip to content

Enable explicit-override by default in strict mode #17511

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
johnthagen opened this issue Jul 9, 2024 · 0 comments
Open

Enable explicit-override by default in strict mode #17511

johnthagen opened this issue Jul 9, 2024 · 0 comments
Labels

Comments

@johnthagen
Copy link
Contributor

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

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

No branches or pull requests

1 participant