From 91568eeddca874fbd45537df7c798aac2e8b9fb3 Mon Sep 17 00:00:00 2001 From: richtermb Date: Fri, 1 Aug 2025 12:52:56 -0700 Subject: [PATCH] Update type hint for `source` in `ErrorFrame` to use forward declaration for improved clarity. --- src/pipecat/frames/frames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index 7f0a46efc..6ee7a858c 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -657,7 +657,7 @@ class ErrorFrame(SystemFrame): error: str fatal: bool = False - source: Optional[FrameProcessor] = None + source: Optional["FrameProcessor"] = None def __str__(self): return f"{self.name}(error: {self.error}, fatal: {self.fatal})"