Fix pre-existing lint and format issues in domain.py and layout.py

Remove two unused `*Props` imports flagged by ruff (F401) and apply
`ruff format` line-wrapping. Pure cleanup, no behavior change — unblocks
`make check` independently of the purchase changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 07:37:53 +02:00
parent dfccfbff51
commit f693f8280f
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -229,7 +229,7 @@ _SELECTOR_OPTION_CLASS = (
def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node: def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node:
"""Light-DOM custom element; behavior in ts/elements/game-status-selector.ts.""" """Light-DOM custom element; behavior in ts/elements/game-status-selector.ts."""
from common.components.core import Element from common.components.core import Element
from common.components.custom_elements import _GameStatusSelector, GameStatusSelectorProps from common.components.custom_elements import _GameStatusSelector
from common.components.primitives import Li, Ul from common.components.primitives import Li, Ul
options = [ options = [
@@ -273,7 +273,7 @@ def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node:
def SessionDeviceSelector(session, session_devices, csrf_token: str) -> Node: def SessionDeviceSelector(session, session_devices, csrf_token: str) -> Node:
"""Light-DOM custom element; behavior in ts/elements/session-device-selector.ts.""" """Light-DOM custom element; behavior in ts/elements/session-device-selector.ts."""
from common.components.core import Element from common.components.core import Element
from common.components.custom_elements import _SessionDeviceSelector, SessionDeviceSelectorProps from common.components.custom_elements import _SessionDeviceSelector
from common.components.primitives import Li, Ul from common.components.primitives import Li, Ul
current_name = session.device.name if session.device else "Unknown" current_name = session.device.name if session.device else "Unknown"
+3 -1
View File
@@ -187,7 +187,9 @@ def _main_script(mastered: bool) -> str:
return _MAIN_SCRIPT_A + ("true" if mastered else "false") + _MAIN_SCRIPT_B return _MAIN_SCRIPT_A + ("true" if mastered else "false") + _MAIN_SCRIPT_B
def Navbar(*, today_played: str, last_7_played: str, current_year: int, csrf_token: str) -> "Node": def Navbar(
*, today_played: str, last_7_played: str, current_year: int, csrf_token: str
) -> "Node":
"""Top navigation bar. """Top navigation bar.
Static chrome, so it's a single ``Safe`` node wrapping its markup rather Static chrome, so it's a single ``Safe`` node wrapping its markup rather