Don't use PEP 604 type hints, to stay compatible with Python<3.10.
This commit is contained in:
parent
ee2c5fa72d
commit
fad02dc2df
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue