More refactoring

This commit is contained in:
2025-05-14 23:27:50 +02:00
parent ebd8529c41
commit 4a3d2746fb
3 changed files with 25 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ class Gates:
self._json_path: str = json_path
self._gates: dict[str, _Gate] = self._load_gates()
def _load_gates(self):
def _load_gates(self) -> dict[str, _Gate]:
try:
with open(self._json_path, "r") as file:
gates_data = json.load(file)