chore: reduce lint and type-check noise #187

Merged
didericis merged 32 commits from feat/linting-and-type-fixes into main 2026-06-04 12:24:39 -04:00
Showing only changes of commit 059bba8c4f - Show all commits
@@ -124,13 +124,13 @@ def main(argv: list[str]) -> int:
machine = argv[0] machine = argv[0]
inner = argv[2:] inner = argv[2:]
def sync(_signum: int, _frame: FrameType | None) -> None: def sync(_signum: int | None = None, _frame: FrameType | None = None) -> None:
size = _read_winsize() size = _read_winsize()
if size is None: if size is None:
return return
_push_size(machine, *size) _push_size(machine, *size)
signal.signal(signal.SIGWINCH, sync) signal.signal(signal.SIGWINCH, sync) # type: ignore[arg-type]
proc = subprocess.Popen(inner) proc = subprocess.Popen(inner)
# Initial sync is deferred — see _STARTUP_SYNC_DELAY_SEC. # Initial sync is deferred — see _STARTUP_SYNC_DELAY_SEC.