059bba8c4f
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>