Commits
Click on a commit to change the comparison range[ty] Narrow types after NoReturn calls in if branches
When a branch calls a NoReturn function, use the negation of the condition
to narrow types after the if statement. For example, after
`if val is None: sys.exit()`, `val` is now correctly narrowed to `int`
instead of `int | None`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>