-
Type: Clean up
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.0.0
-
Fix Version/s: None
-
Component/s: Framework
-
Epic Link:
Use union types to improve readability of the whole project. See the PEP 604 for details.
Short summary: we can rewrite Union and Optional.
Before:
def f(list: List[Union[int, str]], param: Optional[int]) -> Union[float, str]
After:
def f(list: List[int | str], param: int | None) -> float | str:
- is related to
-
NXDRIVE-1242 Use type annotations everywhere
- Resolved