Skip to content

Allow usage of all typing members in annotations #2

@KotlinIsland

Description

@KotlinIsland
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions