Skip to content

refactor: consolidate _OutputComplete classes into shared module#5

Merged
rustyconover merged 2 commits into
mainfrom
consolidate-output-complete
Jan 5, 2026
Merged

refactor: consolidate _OutputComplete classes into shared module#5
rustyconover merged 2 commits into
mainfrom
consolidate-output-complete

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Summary

  • Extract the nearly identical _OutputComplete class from three modules into a shared output_complete.py module
  • Reduce code duplication by consolidating _ScalarOutputComplete (scalar_function.py), _OutputComplete (table_function.py), and _OutputComplete (table_in_out_function.py) into a unified OutputComplete class
  • Fix pre-existing mypy error in vgi/examples/table.py by adding missing type parameter to pa.Field

Test plan

  • All 529 tests pass
  • mypy type checking passes
  • ruff lint and format checks pass

Closes: vgi-python-6o0

🤖 Generated with Claude Code

rustyconover and others added 2 commits January 4, 2026 21:15
Extract the nearly identical _OutputComplete class from scalar_function.py,
table_function.py, and table_in_out_function.py into a shared output_complete.py
module.

This reduces code duplication by consolidating three classes into one:
- _ScalarOutputComplete (scalar_function.py)
- _OutputComplete (table_function.py)
- _OutputComplete (table_in_out_function.py)

The unified OutputComplete class handles all use cases with a single
from_process_result() method that accepts Output, Message, or None.

Also fixes a pre-existing mypy error in vgi/examples/table.py by adding
the missing type parameter to pa.Field.

Closes: vgi-python-6o0

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rustyconover rustyconover merged commit 97ef496 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