Skip to content

Commit

Permalink
RareCore: Use correct typing identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed May 3, 2023
1 parent 184be66 commit 82128e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rare/shared/rare_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from argparse import Namespace
from itertools import chain
from logging import getLogger
from typing import Dict, Iterator, Callable, Optional, List, Union
from typing import Dict, Iterator, Callable, Optional, List, Union, Iterable

from PyQt5.QtCore import QObject, pyqtSignal, QSettings, pyqtSlot, QThreadPool, QRunnable, QTimer
from legendary.lfs.eos import EOSOverlayApp
Expand Down Expand Up @@ -93,10 +93,10 @@ def dequeue_worker(self, worker: QueueWorker):
self.queue_workers.remove(worker)
self.__signals.application.update_statusbar.emit()

def active_workers(self) -> Iterator[QueueWorker]:
def active_workers(self) -> Iterable[QueueWorker]:
return list(filter(lambda w: w.state == QueueWorkerState.ACTIVE, self.queue_workers))

def queued_workers(self) -> Iterator[QueueWorker]:
def queued_workers(self) -> Iterable[QueueWorker]:
return list(filter(lambda w: w.state == QueueWorkerState.QUEUED, self.queue_workers))

def queue_info(self) -> List[QueueWorkerInfo]:
Expand Down

0 comments on commit 82128e3

Please sign in to comment.