Skip to content

ci(pre-commit): pre-commit autoupdate#575

Merged
ikrommyd merged 5 commits intomainfrom
pre-commit-ci-update-config
Jan 6, 2026
Merged

ci(pre-commit): pre-commit autoupdate#575
ikrommyd merged 5 commits intomainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from d4ca830 to 4fec00e Compare April 21, 2025 19:28
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 4fec00e to 9e22cc1 Compare April 28, 2025 19:34
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 20c8c9f to d2ab1e6 Compare May 12, 2025 19:34
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 983d8c2 to f209bbf Compare May 26, 2025 19:36
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 34a780c to 88e35dc Compare June 9, 2025 19:35
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 34d8931 to 4f0530b Compare June 30, 2025 19:31
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 645704c to 402c16b Compare July 14, 2025 19:41
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 22e2e16 to b907903 Compare July 28, 2025 19:48
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from b907903 to cf587a2 Compare August 4, 2025 20:21
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 3657f83 to caab8f5 Compare August 18, 2025 20:09
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from caab8f5 to 26eca38 Compare August 25, 2025 20:00
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 26eca38 to b02cf3f Compare September 1, 2025 20:10
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 96a7fa2 to aecd339 Compare September 15, 2025 20:14
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from fb03ce7 to e50da9b Compare September 29, 2025 20:04
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from d0c3415 to 178cb6f Compare October 13, 2025 20:27
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from 9365969 to 271b943 Compare October 27, 2025 20:10
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 271b943 to 43ea67e Compare November 3, 2025 20:33
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 43ea67e to 8aa51f9 Compare November 10, 2025 20:47
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 8aa51f9 to df8edc8 Compare November 17, 2025 20:20
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from df8edc8 to ddadf58 Compare November 24, 2025 20:42
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch 2 times, most recently from cf53f06 to b35a77d Compare December 8, 2025 20:46
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from b35a77d to 0624298 Compare December 15, 2025 20:36
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0)
- [github.com/psf/black-pre-commit-mirror: 25.1.0 → 25.12.0](psf/black-pre-commit-mirror@25.1.0...25.12.0)
- [github.com/astral-sh/ruff-pre-commit: v0.11.2 → v0.14.10](astral-sh/ruff-pre-commit@v0.11.2...v0.14.10)
- [github.com/PyCQA/isort: 6.0.1 → 7.0.0](PyCQA/isort@6.0.1...7.0.0)
- [github.com/asottile/pyupgrade: v3.19.1 → v3.21.2](asottile/pyupgrade@v3.19.1...v3.21.2)
- [github.com/adamchainz/blacken-docs: 1.19.1 → 1.20.0](adamchainz/blacken-docs@1.19.1...1.20.0)
- [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.19.1](pre-commit/mirrors-mypy@v1.15.0...v1.19.1)
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 0624298 to d067fc8 Compare December 22, 2025 20:16
raise ValueError("divisions must be a tuple of length len(source) + 1")
hlg = HighLevelGraph.from_collections(name, dsk, dependencies=parts)
hlg = HighLevelGraph.from_collections(
name, dsk, dependencies=cast("Sequence[DaskCollection]", parts)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@martindurant I'm not an expert at python typing. I used cast here as from_collections expects a sequence of DaskCollection but I could have just instructed mypy to ignore this line. What do you think? mypy complains with error: Argument "dependencies" to "from_collections" of "HighLevelGraph" has incompatible type "list[Delayed]"; expected "Sequence[DaskCollection]" [arg-type]

Copy link
Collaborator

Choose a reason for hiding this comment

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

Even though Delayed is indeed a collection and list is indeed a sequence.

For me, when you start having to cast() here and there, you may as well be ignoring... That might be because I don't know how to do it well either!

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah since dask wants a DaskCollection type, I would have expected that all dask collections like array etc inherit from this protocol, but they don't......anyways, let me switch to ignore.

layer = AwkwardBlockwiseLayer.from_blockwise(layer)
hlg = HighLevelGraph.from_collections(name, layer, dependencies=[array])
hlg = HighLevelGraph.from_collections(
name, layer, dependencies=cast("Sequence[DaskCollection]", [array])
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@ikrommyd ikrommyd requested a review from martindurant January 6, 2026 14:45
@ikrommyd ikrommyd merged commit d3fe2b7 into main Jan 6, 2026
44 of 50 checks passed
@ikrommyd ikrommyd deleted the pre-commit-ci-update-config branch January 6, 2026 15:32
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