Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement an analog of map_instance_to_supertype() for protocol supertypes #7431

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

Open
ilevkivskyi opened this issue Aug 30, 2019 · 0 comments
Labels
refactoring Changing mypy's internals topic-protocols

Comments

@ilevkivskyi
Copy link
Member

In certain situation (like e.g. when dealing with *args) we want to know what are the type arguments of a generic protocol that a given type implements. Currently this is done in ad-hoc way in few places, but it would be great to have a dedicated helper.

This will also help with some advanced issues like #3829

@ilevkivskyi ilevkivskyi added refactoring Changing mypy's internals topic-protocols labels Aug 30, 2019
@ilevkivskyi ilevkivskyi self-assigned this Aug 30, 2019
@ilevkivskyi ilevkivskyi removed their assignment Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Changing mypy's internals topic-protocols
Projects
None yet
Development

No branches or pull requests

1 participant