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
Ternary expressions currently infer to type object, when they should at least infer a Union of both branch's types (if not more, in the case where the predicate is known to be constant).
Ternary expressions currently infer to type
object
, when they should at least infer aUnion
of both branch's types (if not more, in the case where the predicate is known to be constant).currently results in
error: Incompatible types in assignment (expression has type "object", variable has type "Union[int, str]")
The text was updated successfully, but these errors were encountered: