mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Allow type application on `Union`, `Callable`, `Tuple`, refs #13337

Open sobolevn opened this issue 3 years ago • 1 comments

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

sobolevn avatar Aug 11 '22 15:08 sobolevn

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Aug 11 '22 16:08 github-actions[bot]