You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started trying to apply typing to a code base, so I may be greatly miss-understanding what I am doing, but here we go :)
We have a case where we get a tuple back from a user supplied function which must be (None, None), (some_not_none, None), or (some_not_none, other_not_none), that the second value can only be not None if the first value is also not None. (This is why I did not do Tuple[Optional[int], Optional[int]]).
I just started trying to apply typing to a code base, so I may be greatly miss-understanding what I am doing, but here we go :)
We have a case where we get a tuple back from a user supplied function which must be
(None, None)
,(some_not_none, None)
, or(some_not_none, other_not_none)
, that the second value can only be notNone
if the first value is also notNone
. (This is why I did not doTuple[Optional[int], Optional[int]]
).A minimal example to reproduce the issues is
which gives
The text was updated successfully, but these errors were encountered: