diff --git a/src/openrtc/provider_types.py b/src/openrtc/provider_types.py index dc81b26..63d876d 100644 --- a/src/openrtc/provider_types.py +++ b/src/openrtc/provider_types.py @@ -2,12 +2,12 @@ from __future__ import annotations -from typing import Any, TypeAlias +from typing import TypeAlias # Values accepted for STT, LLM, and TTS configuration: # - Provider ID strings (e.g. ``"openai/gpt-4o-mini-transcribe"``) used by LiveKit # routing and the OpenRTC CLI defaults. # - Concrete LiveKit plugin instances (e.g. ``livekit.plugins.openai.STT(...)``). -# ``Any`` covers third-party plugin classes without enumerating them here; use -# strings when you want the type checker to stay precise. -ProviderValue: TypeAlias = str | Any +# ``object`` allows any third-party plugin class without enumerating them here; +# use strings when you want the type checker to stay precise. +ProviderValue: TypeAlias = str | object diff --git a/tests/conftest.py b/tests/conftest.py index 6907688..c1e6148 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,3 @@ -from __future__ import annotations - """Pytest configuration and shared fixtures. LiveKit SDK shim (below): if ``livekit.agents`` cannot be imported, we register a @@ -19,6 +17,8 @@ release; use the shim mainly for documented minimal environments. """ +from __future__ import annotations + import importlib import sys import types