Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Sep 26, 2023
1 parent c5a61eb commit 31f32ca
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 25 deletions.
6 changes: 3 additions & 3 deletions cluster_tools/cluster_tools/executors/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from cluster_tools.executors.multiprocessing_ import CFutDict, MultiprocessingExecutor

if TYPE_CHECKING:
from dask.distributed import Client
from distributed import Client

_T = TypeVar("_T")
_P = ParamSpec("_P")
Expand All @@ -34,13 +34,13 @@ def __init__(
self,
**kwargs: Any,
) -> None:
from dask.distributed import Client
from distributed import Client

self.client = Client(**kwargs)

@classmethod
def as_completed(cls, futures: List["Future[_T]"]) -> Iterator["Future[_T]"]:
from dask.distributed import as_completed
from distributed import as_completed

return as_completed(futures)

Expand Down
36 changes: 17 additions & 19 deletions cluster_tools/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cluster_tools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/scalableminds/webknossos-libs"

[tool.poetry.dependencies]
python = ">=3.8"
dask = { version = "^2023.9.1", python = ">=3.9", extras = ["distributed"] }
distributed = { version = "^2023.9.1", python = ">=3.9" }
kubernetes = "^27.2.0"
typing-extensions = "^4.4.0"

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dunamai==1.17.0
poetry==1.5.1
dunamai==1.18.1
poetry==1.6.1

0 comments on commit 31f32ca

Please sign in to comment.