minus-squaremadwifi@lemmy.worldtoPython@programming.dev•[Answered] Typehints for functions that have variable signatureslinkfedilinkarrow-up5arrow-down2·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-up5·1 year agoop linkfedilink
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: