Skip to content

Commit 846133c

Browse files
committed
Fix typecheck error with latest pyright
1 parent ea37af2 commit 846133c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ai_diffusion/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22
from abc import ABC, abstractmethod
33
from enum import Enum
4-
from typing import Any, Generator, Iterable, NamedTuple
4+
from typing import Any, AsyncGenerator, Iterable, NamedTuple
55
from PyQt5.QtCore import QObject, pyqtSignal
66

77
from .api import WorkflowInput
@@ -286,7 +286,7 @@ async def connect(url: str, access_token: str = "") -> Client: ...
286286
async def enqueue(self, work: WorkflowInput, front: bool = False) -> str: ...
287287

288288
@abstractmethod
289-
async def listen(self) -> Generator[ClientMessage, Any, None]: ...
289+
def listen(self) -> AsyncGenerator[ClientMessage, Any]: ...
290290

291291
@abstractmethod
292292
async def interrupt(self): ...

0 commit comments

Comments
 (0)