-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Use pyright 1.1.230 in CI, temporarily pin pyright-action to 1.0.4 #7495
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
Conversation
Can't say I understand the new errors @erictraut — any idea what's going on? :) |
Looks like pyright is failing on master as well, actually https://github.com/python/typeshed/runs/5564499056?check_suite_focus=true |
hmmm
Maybe we messed up some configuration file? |
It last passed in https://github.com/python/typeshed/runs/5549915994?check_suite_focus=true and failed in https://github.com/python/typeshed/runs/5564499730?check_suite_focus=true. That's #7494, which looks harmless, and reverting it doesn't fix the problem. I noticed though that the action now prints https://github.com/jakebailey/pyright-action/commits/main had a bunch of changes over the last day. @jakebailey could you take a look? Not sure what the problem is but somehow your changes broke typeshed CI. |
Pyright is now failing in the "correct" way after pinning pyright-action to v1.0.4, so we can say for certain that it was a change in pyright-action v1.0.5 or later that broke the CI! |
The new errors pyright 1.1.230 is reporting are all to do with multiple-inheritance issues in the |
These issues could also be the reason that stubtest crashes. |
Quickly checking the SQLalchemy stubs: The stubs are correct when compared to the implementation. Many classes define a |
Well that last push didn't seem to trigger any CI at all... |
try turning it off and on again |
Hooray! |
This is intentional. This isn't safe in general, for the same reason that it's not safe for two superclasses to define different methods of the same name. If you think that SQLAlchemy is correct, you could disable the |
No, I think this is a good check for pyright to have -- but in this situation, I think typeshed should follow the upstream implementation as closely as possible, so it's better to add Perhaps we should disable this check in |
@AlexWaygood writes what I was about to write. @erictraut Would disabling it for the stubs and removing the |
Errors are generally not reported for type stubs that are consumed by other projects. They will see errors if they happen to open that type stub file in their editor. So a Another option is to use the new |
|
Unblocks #7493