Skip to content

typing.Union should only be allowed in type aliases when used with forward references #5

@plinss

Description

@plinss

If type aliases are not allowed, typing.Union is only needed when used with forward references, e.g.:

X: TypeAlias = Union[int | 'Foo']

but is not needed for:

X: TypeAlias = Union[int | Foo]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions