Skip to content

Update to PEP 604 requires python 3.10+ #1417

@rajeeja

Description

@rajeeja

Modernize type hints to PEP 604/built-in generics across the codebase (grid/neighbors/subset/plot/dataset modules), replacing Optional/Union/List/Dict/Tuple/Set with | unions and built-in generics

Old style (pre-PEP 604):

  - Union[str, int]
  - Optional[bool] (alias for Union[bool, None])

New style (PEP 604, Python 3.10+):

  - str | int
  - bool | None

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

📚 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions