mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
13 lines
239 B
Python
13 lines
239 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Generic, TypeVar
|
|
|
|
ValueT = TypeVar("ValueT", bool, int)
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class PropertyValue(Generic[ValueT]):
|
|
id: str
|
|
value: ValueT
|