You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix pyright type errors and AWS Bedrock semantic tag bug (#47)
## Summary
- Resolved all 74 pyright type errors across the codebase
- Fixed bug where AWS Bedrock LLM assigns semantic tags to numeric
columns (LONG, BIGINT, etc.), causing Stitch jobs to fail with
"Semantics on fields of type LONG are not supported"
## Changes
**Type fixes:**
- Aligned `ModelInfo` TypedDict across LLM providers
- Fixed `WizardState.models` type hint
- Added proper None handling and type narrowing throughout
- Fixed except clause ordering and Callable imports
**Stitch/PII fix:**
- Added `NUMERIC_TYPES` filter in `stitch_tools.py` to strip semantics
from numeric columns
- Updated PII detection prompt to instruct LLM not to tag numeric
columns
## Test plan
- [x] All 626 unit tests pass
- [x] Pyright reports 0 errors
- [x] Ruff linting passes
0 commit comments