| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
|
Looks like this is worth 2% on self check. https://github.com/mypyc/mypyc-benchmark-results/blob/master/reports/benchmarks/mypy_self_check.md Maybe we can add some special case support for contextmanager in mypyc... |
Sorry, something went wrong.
|
@hauntsaninja Yes, this is kind of a known thing. I raised priority for mypyc/mypyc#905 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #20606
This fixes couple edge cases where walrus interferes with type inference fallback logic. This is not a complete fix, but I think it is OK for now as these are probably rare situations. Most changes in binder.py are a pure performance optimization to compensate the fact that frame_context() will be more hot now. I also leave a TODO explaining a more proper fix for the assignment case (and other possible cases), return case should be already good (it is simpler since we don't need to apply any of the narrowing).