Python Typing comme int ou flottant
from typing import Union
# Usage:
Union[type1, type2]
# Exemple:
weight : Union[int, float]
# or
def return_triple( number : Union[int, float]) -> Union[int, float]:
return number*2
Thoughtful Trout