mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
typing: executor: use queue.Queue instead of multiprocessing.Queue
This commit is contained in:
committed by
skshetry
parent
036ac8e7c2
commit
8e6ea87b76
@@ -39,7 +39,7 @@ from ..base import (
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from multiprocessing import Queue
|
||||
from queue import Queue
|
||||
|
||||
from scmrepo.git import Git
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ class BaseExecutorManager(ABC, Mapping):
|
||||
executor.reproduce,
|
||||
info=executor.info,
|
||||
rev=rev,
|
||||
queue=pid_q, # type: ignore[arg-type]
|
||||
queue=pid_q,
|
||||
infofile=infofile,
|
||||
log_level=logger.getEffectiveLevel(),
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ from dvc.repo.experiments.base import (
|
||||
from .base import BaseExecutor, ExecutorInfo, ExecutorResult
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from multiprocessing import Queue
|
||||
from queue import Queue
|
||||
|
||||
from scmrepo.git import Git
|
||||
|
||||
|
||||
Reference in New Issue
Block a user