Skip to content

Switch to new typing approach. #467

Description

@mdabrowski1990

Description

As a user, I would like to use new typing approach (e.g. None | int instead Optional[int]), so I follow up the newset trends.
As a developer, I would like to switch to new typing approach, so it is easier to read the code.

Refer to PEP 585 for more info.

Acceptance Criteria

  • typing imports removed where possible (Union, Optional, List, Tuple, Set, Dict, etc.)
  • keep typing imports where necessary (e.g. TypedDict)
  • use | instead of Union
  • use None | instead of Optional
  • use tuple[...] instead of Tuple[...] (same for other builtin types like set, list, dict)

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions