Fix type errors in pipeline and add to pyright checked set

Use Sequence[FrameProcessor] instead of list[FrameProcessor] in Pipeline,
ServiceSwitcher, and ServiceSwitcherStrategy parameters to accept subtype
lists. Add cast() in LLMSwitcher for narrowed return types. Guard against
None in task_observer._send_to_proxy and replace hasattr with truthiness
check in task._cleanup.
This commit is contained in:
Mark Backman
2026-04-16 21:47:11 -04:00
parent 3127cc6161
commit ab91047300
6 changed files with 18 additions and 14 deletions

View File

@@ -9,7 +9,8 @@
"src/pipecat/frames",
"src/pipecat/observers",
"src/pipecat/extensions",
"src/pipecat/turns"
"src/pipecat/turns",
"src/pipecat/pipeline"
],
"exclude": [
"**/*_pb2.py",