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
fromtypingimportProtocolclassHasName(Protocol):
__name__: strclassA: ...
t: type[A] =An: HasNamen=A# no errorn=t# error: Incompatible types in assignment (expression has type "type[A]", variable has type "HasName") [assignment]
The text was updated successfully, but these errors were encountered:
KotlinIsland
changed the title
(🐞) type[T] can't be assigned to protocol with __name__ when passed through
(🐞) type[T] can't be assigned to protocol with __name__Jul 3, 2024
KotlinIsland
changed the title
(🐞) type[T] can't be assigned to protocol with __name__
(🐞) type[T] can't be assigned to Protocol with __name__Jul 3, 2024
The text was updated successfully, but these errors were encountered: