Skip to content
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

pyright: Don't report incompatible overrides #7498

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 srittau commented Mar 16, 2022

See discussion in #7495.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

(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
60 checks passed
@srittau srittau deleted the ignore-warning branch Mar 16, 2022
@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Mar 16, 2022

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

@AlexWaygood AlexWaygood commented Mar 16, 2022

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
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants