Skip to content

pyright: Don't report incompatible overrides #7498

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

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Mar 16, 2022

These overrides are inherited from the implementation and are out of
typeshed's control.

These overrides are inherited from the implementation and are out of
typeshed's control.
@srittau
Copy link
Collaborator Author

srittau commented Mar 16, 2022

See discussion in #7495.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I assume the CI will pass, if it ever wakes up from its slumber)

@srittau srittau closed this Mar 16, 2022
@srittau srittau reopened this Mar 16, 2022
@srittau srittau merged commit 108b6fb into python:master Mar 16, 2022
@srittau srittau deleted the ignore-warning branch March 16, 2022 15:20
@JelleZijlstra
Copy link
Member

We should be able to do this for mypy too by turning off the override error code.

Not totally sure we should do this, though; often incompatible override errors can be ignored, but sometimes they also provide a useful nudge to adjust the annotations on a method that's part of a protocol.

@AlexWaygood
Copy link
Member

We should be able to do this for mypy too by turning off the override error code.

Not totally sure we should do this, though; often incompatible override errors can be ignored, but sometimes they also provide a useful nudge to adjust the annotations on a method that's part of a protocol.

Personally I'm happy with keeping the mypy errors, but switching off the slightly stricter pyright errors? (I think that's a coherent position?)

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

Successfully merging this pull request may close these issues.

3 participants