Skip to content

Commit 9e7ce1d

Browse files
committed
refact: fix linting
1 parent 242691c commit 9e7ce1d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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)