Update type hint for source in ErrorFrame to use forward declaration for improved clarity.
This commit is contained in:
@@ -657,7 +657,7 @@ class ErrorFrame(SystemFrame):
|
|||||||
|
|
||||||
error: str
|
error: str
|
||||||
fatal: bool = False
|
fatal: bool = False
|
||||||
source: Optional[FrameProcessor] = None
|
source: Optional["FrameProcessor"] = None
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.name}(error: {self.error}, fatal: {self.fatal})"
|
return f"{self.name}(error: {self.error}, fatal: {self.fatal})"
|
||||||
|
|||||||
Reference in New Issue
Block a user