Skip to content

Commit

Permalink
refactor: add type hints and docstrings to methods
Browse files Browse the repository at this point in the history
  • Loading branch information
xor2003 committed Aug 16, 2024
1 parent fc9cf97 commit d5b857a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion masm2c/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit d5b857a

Please sign in to comment.