Skip to content

fix(golden): narrow Event.direction after membership check - #112

Merged
millsmillsymills merged 1 commit into
phase1from
fix/110-narrow-event-direction
Jun 10, 2026
Merged

fix(golden): narrow Event.direction after membership check#112
millsmillsymills merged 1 commit into
phase1from
fix/110-narrow-event-direction

Conversation

@millsmillsymills

Copy link
Copy Markdown
Contributor

ty widened the membership-checked literal back to str, flagging the Event(dir=...) assignment at tests/golden/harness.py:57. Cast to Direction after the runtime guard so the assignment type-checks; the guard already proves the value is one of ("tx","rx").

ty check and the golden suite (18 passed) are green.

Closes #110

🤖 Generated with Claude Code

ty widened the membership-checked literal back to str, flagging the
Event(dir=...) assignment. Cast to Direction after the runtime guard so
the assignment type-checks; the guard already proves the value is valid.

Closes #110

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@millsmillsymills
millsmillsymills merged commit 899d338 into phase1 Jun 10, 2026
5 checks passed
@millsmillsymills
millsmillsymills deleted the fix/110-narrow-event-direction branch June 10, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

ty: narrow Event.direction after membership check (harness.py:57)

1 participant