Fix type hints in `SyncHandler`.