Skip to content

refactor: Add concise __repr__ to ArgumentSpec#16

Merged
rustyconover merged 2 commits into
mainfrom
refactor/argument-spec-repr
Jan 5, 2026
Merged

refactor: Add concise __repr__ to ArgumentSpec#16
rustyconover merged 2 commits into
mainfrom
refactor/argument-spec-repr

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Summary

  • Adds custom __repr__ to ArgumentSpec for better debugging experience
  • Shows name, position (quoted for named args), and Arrow type concisely
  • Only shows flags (table_input, any_type, varargs) when True

Example output:

ArgumentSpec(name="count", pos=0, type=int64)
ArgumentSpec(name="format", pos="format", type=string)
ArgumentSpec(name="data", pos=0, type=null, flags=[table_input])

Test plan

  • All existing tests pass
  • New tests for repr behavior
  • Type checks pass

Closes vgi-python-l1u

🤖 Generated with Claude Code

rustyconover and others added 2 commits January 5, 2026 12:14
Adds a custom __repr__ that shows:
- name and position (quoted for named args)
- Arrow type (concise form)
- flags only when True (table_input, any_type, varargs)

Example: ArgumentSpec(name="count", pos=0, type=int64)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rustyconover rustyconover merged commit ba3d27a into main Jan 5, 2026
0 of 16 checks passed
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