Skip to content

Replace Union annotations with TypeVar #26453

Closed
@WillAyd

Description

@WillAyd

Had a revelation after python/mypy#6847 (comment) and I think we've been using Union too liberally in places where a TypeVar may make more sense (especially in pandas._typing) so would be good to go back and swap those out.

@gwrome @vaibhavhrt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Typingtype annotations, mypy/pyright type checking

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions