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
fromtypingimportOptional, SetclassFoo:
passbar: Set[Optional[Foo]] =set()
baz: Set[Foo] =bar- {None}
# Incompatible types in assignment (expression has type "Set[Optional[Foo]]",# variable has type "Set[Foo]")
The text was updated successfully, but these errors were encountered:
If support for this is added, maybe we could also consider including support for sets of Literal too?
(my use-cases is actually also the None case, but I'm guessing the same logic might work for both)
Tested with 0.761.
MWE:
The text was updated successfully, but these errors were encountered: