Files
openide/python/testData/paramInfo/InitializingGenericDataclass.py
evgeny.bovykin 5cdec66645 PY-78250 Call PyDataclassTypeProvider before PyTypingTypeProvider so that it has a chance to infer the dataclass type first
(cherry picked from commit 18230af949275e3f585ce806fec25144731e347b)

IJ-MR-158112

GitOrigin-RevId: 50ed312ca85b506cd1a8e8411b80548f81b56487
2025-04-23 12:07:33 +00:00

12 lines
179 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>)