We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea37af2 commit 846133cCopy full SHA for 846133c
ai_diffusion/client.py
@@ -1,7 +1,7 @@
1
from __future__ import annotations
2
from abc import ABC, abstractmethod
3
from enum import Enum
4
-from typing import Any, Generator, Iterable, NamedTuple
+from typing import Any, AsyncGenerator, Iterable, NamedTuple
5
from PyQt5.QtCore import QObject, pyqtSignal
6
7
from .api import WorkflowInput
@@ -286,7 +286,7 @@ async def connect(url: str, access_token: str = "") -> Client: ...
286
async def enqueue(self, work: WorkflowInput, front: bool = False) -> str: ...
287
288
@abstractmethod
289
- async def listen(self) -> Generator[ClientMessage, Any, None]: ...
+ def listen(self) -> AsyncGenerator[ClientMessage, Any]: ...
290
291
292
async def interrupt(self): ...
0 commit comments