ty Adds Always-True/Always-False Condition Detection
Astral's Python type checker ty now detects always-true/always-false conditions, catching bugs like forgotten function calls or un-invoked generators in if statements.
2026-09-25 ~ 2026-09-25 · 2 related posts
- ty can now detect always-true/always-false conditions, catching uncalled-function bugs — charliermarsh · 2026-09-25
- Another ty catch: forgetting to call any() on a generator, which is always truthy — charliermarsh · 2026-09-25