minus-squaremadwifi@lemmy.worldtoPython@programming.dev•[Answered] Typehints for functions that have variable signatureslinkfedilinkarrow-up0·edit-21 year agodef foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: linkfedilink
minus-squaremadwifi@lemmy.worldtoProgrammer Humor@programming.dev•OK, now what?linkfedilinkarrow-up0·1 year agoop linkfedilink
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: