mac to [email protected] • 8 months agoPython errors as valueswww.inngest.comexternal-linkmessage-square17fedilinkarrow-up145arrow-down13cross-posted to: [email protected]
arrow-up142arrow-down1external-linkPython errors as valueswww.inngest.commac to [email protected] • 8 months agomessage-square17fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink6•8 months agoIf you wrote the type signature of get_user as tuple[User, None] | tuple[None, Exception], the assertion would not be necessary and the type checker wouldn’t complain.
If you wrote the type signature of
get_user
astuple[User, None] | tuple[None, Exception]
, the assertion would not be necessary and the type checker wouldn’t complain.