Skip to content

Commit

Permalink
Fix for py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Mar 27, 2024
1 parent f1f0c3d commit df85738
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sticker_convert/utils/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
WorkQueueItemType = Optional[Tuple[Callable[..., Any], Tuple[Any, ...]]]
ResponseItemType = Union[bool, str, None]

CbQueueType = Queue[CbQueueItemType]
WorkQueueType = Queue[WorkQueueItemType]
if TYPE_CHECKING:
# mypy complains about this
ResultsListType = ListProxy[Any] # type: ignore
ResponseListType = ListProxy[ResponseItemType] # type: ignore
CbQueueType = Queue[CbQueueItemType] # type: ignore
WorkQueueType = Queue[WorkQueueItemType] # type: ignore
else:
ResultsListType = List[Any]
ResponseListType = List[ResponseItemType]
CbQueueType = Queue
WorkQueueType = Queue


class CallbackReturn:
Expand Down

0 comments on commit df85738

Please sign in to comment.