Skip to content

Commit 48c6c6f

Browse files
[pre-commit.ci] pre-commit autoupdate (#154)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/crate-ci/typos: v1.46.0 → v1](crate-ci/typos@v1.46.0...v1) * Stabilize ty checks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <tobias.raabe@quantilope.com>
1 parent 75c8354 commit 48c6c6f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656
args: [--wrap, "88"]
5757
files: (README\.md)
5858
- repo: https://github.com/crate-ci/typos
59-
rev: v1.46.0
59+
rev: v1
6060
hooks:
6161
- id: typos
6262
- repo: meta

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test = [
5050
]
5151
typing = [
5252
"pytask-parallel",
53-
"ty>=0.0.8",
53+
"ty>=0.0.8,<0.0.34",
5454
{include-group = "coiled"},
5555
{include-group = "dask"},
5656
]

src/pytask_parallel/execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
def _get_task_from_dag(session: Session, task_name: str) -> PTask:
4545
"""Get a task from the pre- and post-pytask 0.6 DAG representations for compat."""
4646
node = session.dag.nodes[task_name]
47-
task = node["task"] if isinstance(node, dict) else node
47+
task = cast("Any", node)["task"] if isinstance(node, dict) else node
4848

4949
if not isinstance(task, PTask):
5050
msg = f"Expected {task_name!r} to resolve to a task."

0 commit comments

Comments
 (0)