adaptix
adaptix copied to clipboard
Cannot parse generic with args
According to standard raw generic should be treated as parametrized with Any. But last line of code is not working properly
T = TypeVar("T")
@dataclass
class A(Generic[T]):
x: T
f = Factory()
f.load({"x": None}, A[Any])
f.load({"x": None}, A)