Files
openide/python/testData/paramInfo/InitializingGenericDataclass.py
evgeny.bovykin 168627dd16 PY-79816 Support dataclass constructors in PyDataclassTypeProvider#prepareCalleeForTypeCall
GitOrigin-RevId: c97b59763b5c2d599cb95fc6efc97f5340843642
2025-06-06 09:44:53 +00:00

13 lines
204 B
Python

from dataclasses import dataclass
from typing import Generic
from typing import TypeVar
T = TypeVar('T')
@dataclass
class MyDataclass(Generic[T]):
x: T
MyDataclass(<arg1>)
MyDataclass[int](<arg2>)