Commit 5adc8e3
refactor: remove redundant InitInputType class attribute
Add _get_init_input_type() classmethod that infers the init input type
from the generic parameter Function[T] using __orig_bases__ and
get_args(). This eliminates the need for explicit InitInputType class
attributes in subclasses.
- Add _get_init_input_type() with per-class caching
- Remove InitInputType from ScalarFunctionGenerator
- Remove InitInputType from TableFunctionBase
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2a02dd8 commit 5adc8e3
4 files changed
Lines changed: 45 additions & 12 deletions
0 commit comments