Skip to content

Commit

Permalink
Fix typecheck error with latest pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Acly committed Mar 6, 2025
1 parent ea37af2 commit 846133c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai_diffusion/client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
from abc import ABC, abstractmethod
from enum import Enum
from typing import Any, Generator, Iterable, NamedTuple
from typing import Any, AsyncGenerator, Iterable, NamedTuple
from PyQt5.QtCore import QObject, pyqtSignal

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

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

@abstractmethod
async def interrupt(self): ...
Expand Down

0 comments on commit 846133c

Please sign in to comment.