Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

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

realazthatfad02dc2df0b
diff --git a/execution.py b/execution.py
index e91e9a410..bc5cfe55c 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())