minus-squaremadwifi@lemmy.worldtoPython@programming.dev•[Answered] Typehints for functions that have variable signatureslinkfedilinkarrow-up5arrow-down2·edit-210 months agodef foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: linkfedilink
minus-squaremadwifi@lemmy.worldtoFirefox@lemmy.ml•TIL that on Firefox you can unload tabs from memory without closing themlinkfedilinkarrow-up11arrow-down1·10 months agoaddon Tab Suspender does this automatically linkfedilink
madwifi@lemmy.world to Dad Jokes@lemmy.worldEnglish · 11 months 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 · 11 months agomessage-square0fedilink
def foo(return_more: bool) -> Union[Type1, tuple[Type2,Type3]]: