Skip to content

fix: update type hints to use LLMProvider instead of LLMClient#41

Merged
pragyan-amp merged 2 commits intomainfrom
fix/llm-provider-type-hints
Nov 11, 2025
Merged

fix: update type hints to use LLMProvider instead of LLMClient#41
pragyan-amp merged 2 commits intomainfrom
fix/llm-provider-type-hints

Conversation

@pragyan-amp
Copy link
Contributor

@pragyan-amp pragyan-amp commented Nov 11, 2025

Summary

Fixes type errors where LLMProvider instances were being passed to functions that expected
LLMClient type hints.

Changes

  • Updated stitch_tools.py: Changed type hints from LLMClient to LLMProvider in 3
    functions
  • Updated pii_tools.py: Changed type hints from LLMClient to LLMProvider in 2
    functions

Context

The codebase was modernized to use LLMProviderFactory.create() which returns LLMProvider
(Protocol), but helper functions still had type hints expecting the legacy LLMClient class.

Testing

  • Verified with pyright that no LLMProvider/LLMClient type mismatches remain

@pragyan-amp pragyan-amp merged commit 409eb82 into main Nov 11, 2025
2 checks passed
@pragyan-amp pragyan-amp deleted the fix/llm-provider-type-hints branch November 11, 2025 06:13
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