mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 04:35:22 +07:00
(cherry picked from commit 18230af949275e3f585ce806fec25144731e347b) IJ-MR-158112 GitOrigin-RevId: 50ed312ca85b506cd1a8e8411b80548f81b56487
12 lines
179 B
Python
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>) |