mypy
mypy copied to clipboard
Allow type application on `Union`, `Callable`, `Tuple`, refs #13337
This looks a bit messy. Suggestions on implementation are welcome.
All python versions starting from 3.7 allow runtime subscription of Union, Tuple, Callable types (probably something else).
So, I think that it is a good idea to remove this errors from types that can be subscribed.
Closes #13337
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉