Remove `examples/` from the `pyrightconfig.json` ignore list and fix
the resulting type errors across all example files. Common fixes:
- Required API keys: `os.getenv("X")` -> `os.environ["X"]` so the
return type is `str` rather than `str | None`, and misconfiguration
fails fast.
- Narrow `LLMContextMessage` union members with `isinstance(..., dict)`
before dict-style access.
- `assert isinstance(params.llm, ...)` before calling service-specific
methods that aren't on the base `LLMService`.
- Guard optional frame fields (e.g. `LLMSearchResponseFrame.search_result`)
before use.
33 lines
743 B
JSON
33 lines
743 B
JSON
{
|
|
"typeCheckingMode": "basic",
|
|
"pythonVersion": "3.11",
|
|
"pythonPlatform": "All",
|
|
"include": [
|
|
"src/pipecat/clocks",
|
|
"src/pipecat/metrics",
|
|
"src/pipecat/transcriptions",
|
|
"src/pipecat/frames",
|
|
"src/pipecat/observers",
|
|
"src/pipecat/extensions",
|
|
"src/pipecat/turns",
|
|
"src/pipecat/pipeline",
|
|
"src/pipecat/runner"
|
|
],
|
|
"exclude": ["**/*_pb2.py", "**/__pycache__"],
|
|
"ignore": [
|
|
"src/pipecat/adapters",
|
|
"src/pipecat/audio",
|
|
"src/pipecat/processors",
|
|
"src/pipecat/serializers",
|
|
"src/pipecat/services",
|
|
"src/pipecat/sync",
|
|
"src/pipecat/tests",
|
|
"src/pipecat/transports",
|
|
"src/pipecat/utils",
|
|
"tests",
|
|
"scripts",
|
|
"docs"
|
|
],
|
|
"reportMissingImports": false
|
|
}
|