Code sample in basedpyright playground
from dataclasses import dataclass
from typing import Annotated
@dataclass
class Foo[T]:
action: T
def foo[T](value: A[T]):
asdf = value.value
class A[T]: # on hover: covariant
value: Annotated[T, Foo(foo)]
class B[T]: # on hover: invariant
value: Annotated[T, Foo(foo)]
this seems to be an existing issue, but something about this behavior has changed in 1.1.411 but i wasnt able to narrow down exactly what
Code sample in basedpyright playground
this seems to be an existing issue, but something about this behavior has changed in 1.1.411 but i wasnt able to narrow down exactly what