Open
Description
openedon Oct 17, 2024
import typing
T = typing.TypeVar("T", bound="Base", default="Foo")
class Base: ...
class Foo(Base): ...
class Bar(typing.Generic[T]):
def __init__(self, foo: T) -> None:
self.foo = foo
@property
def foo_(self) -> T:
return self.foo # error
But mypy works correctly mypy playground
This is probably a regression because there was no error on version 1.1.383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment