-
-
Notifications
You must be signed in to change notification settings - Fork 692
Replace typing hints with new version #3481
Copy link
Copy link
Closed
Description
Typing improvements we can make the change: Optional[Union[int, float]] = None into int | float = None which should be OK starting from python 3.10
We should replace all:
Union[A, B]withA | BOptional[A]withA | NoneTuple->tuple,List->list, etc
in the function signature and also of the output type hint
- from typing import Callable, Mapping
+ from collections.abc import Callable, Mappingpython 3.9 is EOL, min supported python version is 3.10.
It is a large issue, multiple people can work on it.
If you plan to work on it. Make changes in a single file and submit a PR. Smaller PR == easy review == quicker merging.
Reactions are currently unavailable