Skip to content

Optional[Any] is not the same as Any? #3138

Closed
@matthiaskramm

Description

@matthiaskramm

From python/typeshed#1142 (comment):

[...] in modern mypy Optional[Any] is not the same as Any.

Is this documented somewhere? I'd love to read up on what mypy does special about Optional[Any]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions