Open thomaschhh opened 1 month ago
Adjust type annotations so that they adhere to PEP 604 and to leverage Python 3.10 functionality.
def foo(data: dict[str, list[tuple[int, str]]]) -> dict[str, list[int | str]]: ...
instead of
from typing import Dict, List, Tuple, Union def foo(data: Dict[str, List[Tuple[int, str]]]) -> Dict[str, List[Union[int, str]]]: ...
Improves code readabilty and code quality.
Feature request
Adjust type annotations so that they adhere to PEP 604 and to leverage Python 3.10 functionality.
instead of
Motivation
Improves code readabilty and code quality.