Skip to content

Conversation

@DimitriPapadopoulos
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 15, 2025

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    27 files  ±0      27 suites  ±0   9h 53m 24s ⏱️ - 3m 9s
 4 112 tests ±0   4 006 ✅ +2    104 💤 ±0  1 ❌  - 3  1 🔥 +1 
51 517 runs  +1  49 331 ✅ +3  2 184 💤 ±0  1 ❌  - 3  1 🔥 +1 

For more details on these failures and errors, see this check.

Results for commit 279c6cb. ± Comparison against base commit 3c651c6.

♻️ This comment has been updated with latest results.

@DimitriPapadopoulos DimitriPapadopoulos force-pushed the ruff branch 3 times, most recently from 252d3c9 to 3176491 Compare November 15, 2025 09:35
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review November 15, 2025 10:25
Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, needs some cleanup though.

from distributed.utils import ensure_memoryview, nbytes

if TYPE_CHECKING:
# TODO import from typing (requires Python >=3.10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We require 3.10 now so can remove this comment.

from distributed.utils_comm import retry

if TYPE_CHECKING:
# TODO import from typing (requires Python >=3.10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this comment

from distributed.shuffle._shuffle import shuffle_transfer

if TYPE_CHECKING:
# TODO import from typing (requires Python >=3.10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this comment


logger = logging.getLogger("distributed.shuffle")
if TYPE_CHECKING:
# TODO import from typing (requires Python >=3.10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this comment


if TYPE_CHECKING:
# TODO import from typing (requires Python >=3.10)
# TODO import from typing (requires Python >=3.11)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to move this comment to the line above Self being imported

Copy link
Contributor Author

@DimitriPapadopoulos DimitriPapadopoulos Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could as well remove the comment, since pyupgarde rules should catch it automatically, after the minimal Python version is bumped to Python 3.11. However, I am not certain it will catch it, because it also didn't catch that ParamSpec is part of typing starting with Python 3.10.

DimitriPapadopoulos and others added 11 commits November 17, 2025 23:12
B007 Loop control variable not used within loop body
warning: Invalid rule code provided to `# noqa`
RUF100 Unused `noqa` directive
UP007 Use `X | Y` for type annotations
UP032 Use f-string instead of `format` call

Contains manual changes on top of automatic changes.
UP035 Import from `collections.abc` instead
UP035 Import from `typing` instead
UP041 Replace aliased errors with `TimeoutError`
This rule will be applied in a PR of its own.
Co-authored-by: Jacob Tomlinson <[email protected]>
Co-authored-by: Jacob Tomlinson <[email protected]>
@DimitriPapadopoulos
Copy link
Contributor Author

Rebased.

@jacobtomlinson jacobtomlinson merged commit 242e58b into dask:main Nov 19, 2025
29 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants