mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 23:21:09 +07:00
GitOrigin-RevId: c97b59763b5c2d599cb95fc6efc97f5340843642
13 lines
204 B
Python
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>) |