diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index fb5a933..7229e34 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -43,6 +43,6 @@ jobs: always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4 + uses: github/codeql-action/upload-sarif@e46ed2cbd01164d986452f91f178727624ae40d7 # v4 with: sarif_file: zizmor.sarif diff --git a/pyproject.toml b/pyproject.toml index d2351a0..f788463 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ test = [ ] typing = [ "pytask-parallel", - "ty>=0.0.8", + "ty>=0.0.8,<0.0.34", {include-group = "coiled"}, {include-group = "dask"}, ] diff --git a/src/pytask_parallel/execute.py b/src/pytask_parallel/execute.py index 3001d69..52cc51d 100644 --- a/src/pytask_parallel/execute.py +++ b/src/pytask_parallel/execute.py @@ -44,7 +44,7 @@ def _get_task_from_dag(session: Session, task_name: str) -> PTask: """Get a task from the pre- and post-pytask 0.6 DAG representations for compat.""" node = session.dag.nodes[task_name] - task = node["task"] if isinstance(node, dict) else node + task = cast("Any", node)["task"] if isinstance(node, dict) else node if not isinstance(task, PTask): msg = f"Expected {task_name!r} to resolve to a task."