Skip to content

Simplify execution typing fixes to local casts - #1024

Merged
tobiasraabe merged 1 commit into
mainfrom
codex/simplify-ty-node-casts
Oct 12, 2026
Merged

tobiasraabe merged 1 commit into
mainfrom
codex/simplify-ty-node-casts

Conversation

@tobiasraabe

Copy link
Copy Markdown
Member

The ty 0.0.83 update in #1008 introduced task-specific tree helpers and runtime protocol validation to address recursive leaf inference in execution. Replace those helpers with two local casts on the existing tree_leaves calls: list[TaskNode] when saving return products and list[PNode] after provisional products are collected.

Remove the internal and public task_io modules and their helper-specific tests. This restores the earlier execution behavior, including removal of the added teardown protocol checks, while retaining the ty dependency update. Comments explain the node invariants at each cast.

Validation:

  • just lint passed.
  • just typing passed with ty 0.0.83.
  • uv run --locked --group test pytest tests/test_execute.py tests/test_provisional.py tests/test_tree_util.py -q: 88 passed, covering nested return products, provisional products, and missing-product errors.

@tobiasraabe
tobiasraabe marked this pull request as ready for review October 12, 2026 04:58
@tobiasraabe
tobiasraabe enabled auto-merge October 12, 2026 05:02
@tobiasraabe
tobiasraabe added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 095bb72 Oct 12, 2026
20 checks passed
@tobiasraabe
tobiasraabe deleted the codex/simplify-ty-node-casts branch October 12, 2026 05:07
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.

1 participant