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.worldtoTechnology@beehaw.org•Reddit habit is hard to break.linkfedilinkEnglisharrow-up3·1 year agoI setup TimeLimit to block the reddit apps for some time. I hope it can help you with the redde-addiction. linkfedilink
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: