Skip to content

Commit

Permalink
typing: executor: use queue.Queue instead of multiprocessing.Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jun 13, 2022
1 parent c368bb7 commit 8aeb79c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dvc/repo/experiments/executor/base.py
Expand Up @@ -39,7 +39,7 @@
)

if TYPE_CHECKING:
from multiprocessing import Queue
from queue import Queue

from scmrepo.git import Git

Expand Down
2 changes: 1 addition & 1 deletion dvc/repo/experiments/executor/manager/base.py
Expand Up @@ -183,7 +183,7 @@ def _exec_attached(self, repo: "Repo", jobs: Optional[int] = 1):
executor.reproduce,
info=executor.info,
rev=rev,
queue=pid_q, # type: ignore[arg-type]
queue=pid_q,
infofile=infofile,
log_level=logger.getEffectiveLevel(),
)
Expand Down
2 changes: 1 addition & 1 deletion dvc/repo/experiments/executor/ssh.py
Expand Up @@ -19,7 +19,7 @@
from .base import BaseExecutor, ExecutorInfo, ExecutorResult

if TYPE_CHECKING:
from multiprocessing import Queue
from queue import Queue

from scmrepo.git import Git

Expand Down

0 comments on commit 8aeb79c

Please sign in to comment.