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
madwifi@lemmy.world to Dad Jokes@lemmy.worldEnglish · 1 year agoMy toddler was having constipation and started crying throughout the nightplus-squaremessage-squaremessage-square0fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareMy toddler was having constipation and started crying throughout the nightplus-squaremadwifi@lemmy.world to Dad Jokes@lemmy.worldEnglish · 1 year agomessage-square0fedilink
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: