Skip to content

Scheduler type annotations #9030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion distributed/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@
def _meta(self):
return []

def _layer(self):
def _layer(self) -> dict[Key, GraphNode]:

Check warning on line 889 in distributed/client.py

View check run for this annotation

Codecov / codecov/patch

distributed/client.py#L889

Added line #L889 was not covered by tests
dsk: _T_LowLevelGraph = {}

if not self.kwargs:
Expand Down
4 changes: 2 additions & 2 deletions distributed/preloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def __len__(self) -> int:

def process_preloads(
dask_server: Server | Client,
preload: str | list[str],
preload_argv: list[str] | list[list[str]],
preload: str | Sequence[str],
preload_argv: Sequence[str] | Sequence[Sequence[str]],
*,
file_dir: str | None = None,
) -> PreloadManager:
Expand Down
Loading
Loading