From fad02dc2df0b9c4a0ab84dd1c559197cba752449 Mon Sep 17 00:00:00 2001 From: realazthat Date: Wed, 17 Jan 2024 17:16:34 -0500 Subject: [PATCH] Don't use PEP 604 type hints, to stay compatible with Python<3.10. --- execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution.py b/execution.py index e91e9a41..bc5cfe55 100644 --- a/execution.py +++ b/execution.py @@ -751,7 +751,7 @@ class PromptQueue: if len(self.history) > MAXIMUM_HISTORY_SIZE: self.history.pop(next(iter(self.history))) - status_dict: dict|None = None + status_dict: Optional[dict] = None if status is not None: status_dict = copy.deepcopy(status._asdict())