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.worldtoFirefox@lemmy.ml•TIL that on Firefox you can unload tabs from memory without closing themlinkfedilinkarrow-up11arrow-down1·1 year agoaddon Tab Suspender does this automatically 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]]: