-
Notifications
You must be signed in to change notification settings - Fork 15.4k
mypy version bump 1.12.0 #39850
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
mypy version bump 1.12.0 #39850
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We’re hitting python/typeshed#10653 (giving this a red cross to avoid accidental merge)
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
@dirrao - are you continuing with that :) ? |
Yes. We are waiting from the upstream to fix the bug. |
@uranusjr |
afe1cfa
to
001441d
Compare
@uranusjr Can you help me on the failing check? |
@potiuk
|
c6c9deb
to
2623b45
Compare
The errore does not even make sense to me… |
d1ebe2e
to
2623b45
Compare
Mypy is weirdly complaining it can't convert a callable to a TaskDecoratorCollection since the type is not callable. This is wrong in both ways---TaskDecoratorCollection *is* totally callable, and isn't cast() supposed to not care anyway? I don't see there's a viable way to work around this without significantly impacting typing in other ways, so an ignore marker seems to be the most reasonable option. The cast() call is kept because Mypy might fix this ins the future, and when it does, it should report the marker as redundant and prompt us to remove it.
The 1.11 added special support for |
Also
|
Try mypy 1.12 , we fixed at least one issue related to functools.partial that should help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are a few things from CI that need changes
@@ -215,7 +215,7 @@ | |||
# TODO: upgrade to newer versions of MyPy continuously as they are released | |||
# Make sure to upgrade the mypy version in update-common-sql-api-stubs in .pre-commit-config.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be updated in update-common-sql-api-stubs as per comment?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
mypy version bump 1.12.0