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(ci): bump minimum Python to 3.9 and fix type errors from #37
PR #37 broke all three CI jobs:
- test / compat-build: cn.py uses PEP 585 builtins (`list[str]`) which
fail at Pydantic model-build time on Python 3.8. Raise the minimum
supported version to 3.9 (pyproject + compat pyproject + CI matrix,
poetry.lock refreshed) so the existing annotations are valid.
- compile (mypy): fix the type errors introduced alongside the new
regional/CN feature:
* Remove the `@overload` stubs on Agent/Agora `__new__`/`__init__`
(they could not be paired with their implementations by mypy).
Runtime dispatch is unchanged; only static return-type precision
is dropped.
* __init__.py: import AgentClient/AsyncAgentClient from .pool_client
(where they are defined) instead of .agentkit.
* Agent.turn_detection / _resolve_asr_config: accept dict as well as
the model, matching runtime behaviour.
* regional_agent.py: type: ignore[override] for the intentional
regional-vendor parameter narrowing.
* test_regional_vendors.py: narrow Optional before indexing.
Verified: mypy clean (303 files), 193 passed / 1 skipped, lock consistent.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments