mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
basedpyright cannot narrow the probe error through isinstance(error, AgentCardResolutionError) while that class is imported inside try/except ImportError, which left three reportAttributeAccessIssue errors over the budget main now carries. A runtime-checkable Protocol with the same status_code contract carries the narrowing instead, so the check no longer depends on the possibly unbound SDK name and the import goes. |
||
|---|---|---|
| .. | ||
| litellm_completion_bridge | ||
| providers | ||
| __init__.py | ||
| card_resolver.py | ||
| client.py | ||
| cost_calculator.py | ||
| exception_mapping_utils.py | ||
| exceptions.py | ||
| main.py | ||
| streaming_iterator.py | ||
| utils.py | ||