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.worldtoMemes@lemmy.ml•Mace Windulinkfedilinkarrow-up10·1 year ago wish I could edit the title… paging u/spez linkfedilink
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: