We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2497005 + 713b36e commit 286fdb6Copy full SHA for 286fdb6
2 files changed
.pre-commit-config.yaml
@@ -18,7 +18,7 @@ repos:
18
hooks:
19
- id: codespell
20
- repo: 'https://github.com/charliermarsh/ruff-pre-commit'
21
- rev: v0.14.4
+ rev: v0.14.5
22
23
- id: ruff
24
args:
taps/executor/dask.py
@@ -5,6 +5,7 @@
5
from concurrent.futures import Future
6
from typing import Any
7
from typing import Callable
8
+from typing import cast
9
from typing import Generator
10
from typing import Iterable
11
from typing import Iterator
@@ -81,7 +82,8 @@ def submit(
81
82
[`Future`][concurrent.futures.Future]-like object representing \
83
the result of the execution of the callable.
84
"""
- return self.client.submit(function, *args, **kwargs)
85
+ future = self.client.submit(function, *args, **kwargs)
86
+ return cast(Future[T], future)
87
88
def map(
89
self,
0 commit comments