ty can now detect always-true/always-false conditions, catching uncalled-function bugs

charliermarsh · x · 2026-09-25

ty, the Python type checker, can now detect conditions that are always-true or always-false. A classic case: forgetting to call a function in an if-statement — the function object itself is always truthy. These aren't type errors but are very often mistakes; the team found and fixed multiple bugs like this internally.

Related event: ty Adds Always-True/Always-False Condition Detection(2 posts)→

Original post →

More from coding & agent

coding & agent channel →