mypy version bump 1.12.0#39850
Conversation
uranusjr
left a comment
There was a problem hiding this comment.
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 |
hauntsaninja
left a comment
There was a problem hiding this comment.
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.
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