mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
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>) |