diff --git a/riscemu/Config.py b/riscemu/Config.py index 676728a..4c8a94e 100644 --- a/riscemu/Config.py +++ b/riscemu/Config.py @@ -1,8 +1,9 @@ from dataclasses import dataclass +from typing import Optional -@dataclass() -class RunConfig: - color = True - preffered_stack_size = None - debug_instruction = True +@dataclass(frozen=True, init=True) +class RunConfig: + color: bool = True + preffered_stack_size: Optional[int] = None + debug_instruction: bool = True