Skip to content

[red-knot] Understand typing.Union special form in annotations #14498

@Glyphack

Description

@Glyphack

(part of #14172)

Understand typing.Union in annotations. Union is similar to the union types created with |.
https://typing.readthedocs.io/en/latest/spec/historical.html#union-and-optional

Metadata

Metadata

Assignees

No one assigned

    Labels

    tyMulti-file analysis & type inference

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions