madwifi@lemmy.worldtoPython@programming.dev•[Answered] Typehints for functions that have variable signatures
52·
1 year agodef foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]:
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]:
be America Chavez
Readdit, never even heard it
Don’t dead open inside