Skip to content

fix: remove keyword-only constraint on ScyllaDB process_batch param#40

Draft
hussein-awala wants to merge 1 commit intomainfrom
fix/scylladb-process-batch-signature
Draft

fix: remove keyword-only constraint on ScyllaDB process_batch param#40
hussein-awala wants to merge 1 commit intomainfrom
fix/scylladb-process-batch-signature

Conversation

@hussein-awala
Copy link
Copy Markdown
Owner

Summary

  • AsyncScyllaDbWriteBatcher.process_batch uses *, batch (keyword-only), but the base class _batch_run calls it via run_in_executor for sync implementations, which passes args positionally
  • run_in_executor cannot pass keyword arguments, so this would raise a TypeError at runtime
  • Fix: remove the * to make batch a regular positional parameter, consistent with all other process_batch implementations

Test plan

  • Existing ScyllaDB integration tests pass
  • Verify run_in_executor path works with the fix

🤖 Generated with Claude Code

The base class _batch_run calls process_batch via run_in_executor for
sync implementations, which passes args positionally. The keyword-only
`*, batch` signature causes a TypeError in this path since
run_in_executor cannot pass keyword arguments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant