From 35e946d1eb319c35bbf418d19283cc5823d6065f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B6gstedt?= <marho227@student.liu.se> Date: Tue, 18 Jun 2024 07:59:53 +0000 Subject: [PATCH] Apply merge request review suggestions --- src/simudator/core/module.py | 2 +- src/simudator/processor/mia/modules/mia_memory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simudator/core/module.py b/src/simudator/core/module.py index 9b305e5..473b828 100644 --- a/src/simudator/core/module.py +++ b/src/simudator/core/module.py @@ -136,7 +136,7 @@ class Module: raise NotImplementedError def get_longest_line_len(self, ignore_keys=None) -> int: - """return the length of the longest line when printing the module. + """Return the length of the longest line when printing the module. Helper function for pretty_print. """ diff --git a/src/simudator/processor/mia/modules/mia_memory.py b/src/simudator/processor/mia/modules/mia_memory.py index 733f3ec..6201a7d 100644 --- a/src/simudator/processor/mia/modules/mia_memory.py +++ b/src/simudator/processor/mia/modules/mia_memory.py @@ -73,7 +73,7 @@ class MiaMemory(MiaBusConnector, Memory): def reset(self) -> None: size = len(self._memory) - self._memory = [0 for i in range(size)] + self._memory = [0 for _ in range(size)] def load_from_str(self, state_string) -> None: """ -- GitLab