Skip to content

Commit 0da6517

Browse files
committed
fix linting
1 parent 2cc0bb7 commit 0da6517

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/arch/z80/backend/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from src.api import global_, tmp_labels
88
from src.api.config import OPTIONS, OptimizationStrategy
99
from src.api.exception import TempAlreadyFreedError
10+
1011
from .runtime import LABEL_REQUIRED_MODULES, NAMESPACE, RUNTIME_LABELS
1112
from .runtime import Labels as RuntimeLabel
1213

src/arch/z80/optimizer/cpustate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ def set(self, r: str, val: int | str | None) -> None:
410410

411411
if is_unknown8(val):
412412
val = f"{new_tmp_val()}{HL_SEP}{val}"
413-
assert (
414-
is_num or is_unknown16(val) or is_label(val)
415-
), f"val '{val}' is neither a number, nor a label nor an unknown16"
413+
assert is_num or is_unknown16(val) or is_label(val), (
414+
f"val '{val}' is neither a number, nor a label nor an unknown16"
415+
)
416416

417417
self.regs[r] = val
418418
if is_16bit_composed_register(r): # sp register is not included. Special case

src/zxbasm/memory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ def declare_label(
222222

223223
fname = gl.FILENAME
224224
if label.isdecimal(): # Temporary label?
225-
assert (
226-
not self._tmp_labels_lines[fname] or self._tmp_labels_lines[fname][-1] <= lineno
227-
), "Temporary label out of order"
225+
assert not self._tmp_labels_lines[fname] or self._tmp_labels_lines[fname][-1] <= lineno, (
226+
"Temporary label out of order"
227+
)
228228
if not self._tmp_labels_lines[fname] or self._tmp_labels_lines[fname][-1] != lineno:
229229
self._tmp_labels_lines[fname].append(lineno)
230230

0 commit comments

Comments
 (0)