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

This commit is contained in:
realazthat 2024-01-17 17:16:34 -05:00
parent ee2c5fa72d
commit fad02dc2df
1 changed files with 1 additions and 1 deletions

View File

@ -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())