| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Part of #8240
Unblocks python/typeshed#15712
The actual change is one line in checkexpr and the other changes are for tests, mostly mechanical.
I used the try except trick used for types.ModuleType in the name lookup so that tests that don't import the types module don't crash with KeyError when they use ... (which is used in almost all tests as empty function body).
Most test changes are caused by modules now correctly resolving to module type instead of object because some fixtures started importing types.
The changes are mine, I only used a coding agent to fix the fine-grained-modules.test and testexportjson.py tests and the missing visitor method.