diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 768e2e4..b1eab5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: hooks: - id: codespell - repo: 'https://github.com/charliermarsh/ruff-pre-commit' - rev: v0.14.4 + rev: v0.14.5 hooks: - id: ruff args: diff --git a/taps/executor/dask.py b/taps/executor/dask.py index 77d08d5..fdff810 100644 --- a/taps/executor/dask.py +++ b/taps/executor/dask.py @@ -5,6 +5,7 @@ from concurrent.futures import Future from typing import Any from typing import Callable +from typing import cast from typing import Generator from typing import Iterable from typing import Iterator @@ -81,7 +82,8 @@ def submit( [`Future`][concurrent.futures.Future]-like object representing \ the result of the execution of the callable. """ - return self.client.submit(function, *args, **kwargs) + future = self.client.submit(function, *args, **kwargs) + return cast(Future[T], future) def map( self,