Update type hint for source in ErrorFrame to use forward declaration for improved clarity.

This commit is contained in:
richtermb
2025-08-01 12:52:56 -07:00
parent 165d6b4c1d
commit 91568eeddc

View File

@@ -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})"