Skip to content

[red-knot] Understand typing.Optional special form in annotations #14354

@Glyphack

Description

@Glyphack

(created it to claim the task)
Part of #14172.

Looks like typing.Optional is a union of the parameterized type and None without any tricky cases.
https://typing.readthedocs.io/en/latest/spec/historical.html#union-and-optional

Metadata

Metadata

Assignees

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