Skip to content

Add arrow_type parameter to Arg class#19

Merged
rustyconover merged 2 commits into
mainfrom
feature/arg-arrow-type
Jan 5, 2026
Merged

Add arrow_type parameter to Arg class#19
rustyconover merged 2 commits into
mainfrom
feature/arg-arrow-type

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Summary

  • Adds optional arrow_type parameter to the Arg class
  • Allows explicit specification of Arrow type when automatic inference is not desired
  • Updates __repr__ to include arrow_type when set

This depends on PR #18 (PYTHON_TO_ARROW mapping).

Test plan

  • All 655 existing tests pass
  • Ruff linting passes
  • mypy type checking passes

🤖 Generated with Claude Code

rustyconover and others added 2 commits January 5, 2026 15:50
Add optional arrow_type parameter to explicitly specify the Arrow type
for an argument. This enables explicit type declaration when automatic
inference from Python type hints is not desired.

Changes:
- Add 'arrow_type' to __slots__
- Add arrow_type: pa.DataType | None = None parameter to __init__
- Document the parameter in docstring
- Update __repr__ to include arrow_type when set

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Base automatically changed from feature/python-to-arrow-mapping to main January 5, 2026 21:08
@rustyconover rustyconover merged commit 05c8a2e into main Jan 5, 2026
@rustyconover rustyconover deleted the feature/arg-arrow-type branch January 5, 2026 21:09
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