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
fromtypingimport*x: Type[object] =Union[int, str] # error: Incompatible types in assignment (expression has type "object", variable has type "Type[object]")
Mypy allows this:
although it is explicitly prohibited by PEP 484. (The reason is that one can't instantiate a union.)
The text was updated successfully, but these errors were encountered: