mypy
2b136f05 - Narrow context fallback limitation to walrus only (#21294)

Commit
71 days ago
Narrow context fallback limitation to walrus only (#21294) Fixes https://github.com/python/mypy/issues/21273 This fixes regression caused by too cautious check in assignment context fallback. Ternary expression can change binder version, but only assignment expression can have an _externally visible_ effect. So I add a dedicated counter to track this.
Author
Parents
Loading