basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

Allow usage of all `typing` members in annotations

Open KotlinIsland opened this issue 4 years ago • 0 comments

def foo() -> Never: ...  # allowed
b = Union[int, str]  # not allowed

basedtyping as well. Maybe types as well.

We could modify sitecustomize.py to actually load these for real. (mypy install-site-types maybe)

b = Union[int, str]  # allowed

KotlinIsland avatar Oct 21 '21 22:10 KotlinIsland