-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Add support for additional type aliases from collections #2845
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
|
@JelleZijlstra Thanks! I don't think many additional test are needed, maybe just few tests showing errors (like |
|
I guess I'll have to sync typeshed first, then you can merge that into this PR, and then the tests ought to pass and it can be merged. |
|
Done. Can you merge from master and re-push? |
I didn't add detailed tests for these since there's little specific to these classes in mypy's code. I can add more detailed tests like those for defaultdict if that is preferred. This PR depends on these two typeshed PRs: - python/typeshed#929 - python/typeshed#928
69f3763 to
574586b
Compare
|
Done. Thanks for taking care of the sync! |
|
I've tested this patch on my own code and it works fine. I think it is ready to apply. |
|
OK, merged. Sorry for the delay, I'm still dealing with health issues and not my usual responsive self. |
|
Thanks! No hurry. |
In the future, the type annotation should use Deque in order to be compatible with the latest mypy version. Contingent on python/mypy#2845 being merged.
In the future, the type annotation should use Deque in order to be compatible with the latest mypy version. See python/mypy#2845 for more info.
In the future, the type annotation should use Deque in order to be compatible with the latest mypy version. See python/mypy#2845 for more info.
This implements python/typing#366 in mypy.
I didn't add detailed tests for these since there's little specific
to these classes in mypy's code. I can add more detailed tests
like those for defaultdict if that is preferred.
This PR depends on these two typeshed PRs [Update: both merged]: