pyne/datatypes.py

18 lines
264 B
Python
Raw Normal View History

2023-04-08 20:07:28 +00:00
from dataclasses import dataclass
from enum import auto, Enum
from typing import Any
class Datatype(Enum):
NONE = auto()
STRING = auto()
INTEGER = auto()
FLOAT = auto()
@dataclass
class Variable:
name: str
type: Datatype
value: Any