From feaf432645f0fc7de47c285eea12cfb3ff136681 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 17 Apr 2021 20:57:21 +0200 Subject: [PATCH] fixed config dataclass --- riscemu/Config.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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