Type hinting in python

[a note for myself]

var: str='text'
from typing import Optional
def function(variable: str|float, number: int|float, variable: bool=False, a_kwarg: Optional[int]=None):
    pass
from typing import Tuple
def function() -> Tuble[str,str]:
    return 'Hello', 'World!'