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
fromtypingimportSelfclassFoo[T]:
instance: Self# commenting out this line makes the error go awaydeffoo(self) ->T: ... # type:ignore[empty-body]classBar(Foo[int]): ...
# Incompatible types in assignment (expression has type "Bar", variable has type "Foo[object]") [assignment]foo: Foo[object] =Bar()