-
Notifications
You must be signed in to change notification settings - Fork 769
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
78 permanent errors in builtins.pyi
#6409
Comments
Yes, these are real type errors in Typeshed maintainers are forced to use incompatible method overrides because the stdlib does not always honor the Liskov Substitution Principle. The typeshed CI pipelines explicitly disable a number of pyright's checks including reportIncompatibleMethodOverride and reportPrivateUsage. If you would prefer that these errors be suppressed, you could submit a bug report or a PR to the typeshed project to add |
Hi @erictraut, As per Jelle's response, those errors should not be showing up. Is there a way I can configure pyright to not show them? I tried various ways of adding the file to my Regards, |
Jelle is correct that if you run the pyright CLI tool on your project, you should not see errors in stub files or library files that are imported but are not themselves part of your project. Likewise, if you are using the pyright language server (or pylance) and open files that are part of your project, you won't see errors from However, if you explicitly open |
Ah, I see where the confusion is. I am not opening |
Ah, interesting. If you're seeing these all the time even when |
Thanks Eric! |
Environment data
v2024.9.100 (pre-release)
orv2024.14.1
(occurs with both)Code Snippet
pyrightconfig.json
Expected behavior
No errors from outside my code
Actual behavior
The text was updated successfully, but these errors were encountered: