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)
Description
As a user, I would like to use new typing approach (e.g.
None | intinsteadOptional[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
typingimports removed where possible (Union,Optional,List,Tuple,Set,Dict, etc.)typingimports where necessary (e.g.TypedDict)|instead ofUnionNone |instead ofOptionaltuple[...]instead ofTuple[...](same for other builtin types likeset,list,dict)