Files
bot-bottle/bot_bottle/backend
didericis 059bba8c4f
lint / lint (push) Successful in 1m26s
test / unit (pull_request) Successful in 34s
test / integration (pull_request) Successful in 44s
fix: make pty_resize sync function callable with no arguments
The sync() function is used in two contexts:
1. As a signal handler: signal.signal(signal.SIGWINCH, sync)
   - Called with (signum: int, frame: FrameType | None)
2. As a threading.Timer callback: Timer(..., sync)
   - Called with no arguments

Made parameters optional with defaults to support both call patterns.
Added type: ignore for signal.signal() since the type signature differs.

Fixes: TypeError when Timer tries to call sync() with no arguments.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-04 12:12:57 -04:00
..