You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Union are a very common situation when typing code, but they require an import every time. I usually can get away with str/int/float or my own classes for most of the code, but end up making an import just for Union, Dict and List.
The idea would be to allow Union to be expressed with a "|", replacing the Union:
from typing import Union
def multiply(*values: Union[int, float]) -> Union[int, float]: