Commit fad02dc2 authored by realazthat's avatar realazthat
Browse files

Don't use PEP 604 type hints, to stay compatible with Python<3.10.

parent ee2c5fa7
...@@ -751,7 +751,7 @@ class PromptQueue: ...@@ -751,7 +751,7 @@ class PromptQueue:
if len(self.history) > MAXIMUM_HISTORY_SIZE: if len(self.history) > MAXIMUM_HISTORY_SIZE:
self.history.pop(next(iter(self.history))) self.history.pop(next(iter(self.history)))
status_dict: dict|None = None status_dict: Optional[dict] = None
if status is not None: if status is not None:
status_dict = copy.deepcopy(status._asdict()) status_dict = copy.deepcopy(status._asdict())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment