From d5b857a299bc71aa16e6a02f316e25e7641dfbe9 Mon Sep 17 00:00:00 2001 From: "xor (aider)" Date: Sat, 17 Aug 2024 00:06:58 +0200 Subject: [PATCH] refactor: add type hints and docstrings to methods --- masm2c/gen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/masm2c/gen.py b/masm2c/gen.py index 92f812e..8b7946a 100644 --- a/masm2c/gen.py +++ b/masm2c/gen.py @@ -454,7 +454,8 @@ def isrelativejump(label: Expression) -> bool: and label.children[0].children[0].data == "dollar" ) - def dump_globals(self): + def dump_globals(self) -> None: + """Dumps the global variables to a file.""" from masm2c.proc import Proc name = f"{self._namespace.lower()}.list" logging.info(f" *** Generating globals listing {name}")