adaptix icon indicating copy to clipboard operation
adaptix copied to clipboard

Cannot parse generic with args

Open Tishka17 opened this issue 3 years ago • 0 comments

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)

Tishka17 avatar Feb 09 '22 14:02 Tishka17