| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Diff from mypy_primer, showing the effect of this PR on open source code: scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/misc/test_submodules_empty.pyi:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #22175
Preserve NewType targets when narrowing through TypeIs. Runtime isinstance checks still erase NewType to its base because they cannot distinguish the wrapper, while an explicit TypeIs predicate can now narrow to the declared NewType.
Adds regression coverage for both the positive and negative branches.