Skip to content

Do not display import-related errors after module-level always false assert #19347

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sterliakov
Copy link
Collaborator

Fixes #19346

@sterliakov sterliakov marked this pull request as ready for review June 26, 2025 23:04
@sterliakov sterliakov marked this pull request as draft June 26, 2025 23:33
@sterliakov sterliakov marked this pull request as ready for review June 27, 2025 00:22
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- src/pywinctl/_pywinctl_win.py:28: error: Cannot find implementation or library stub for module named "pywinbox"  [import-not-found]
- src/pywinctl/_pywinctl_macos.py:25: error: Cannot find implementation or library stub for module named "pywinbox"  [import-not-found]

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mypy tries to follow imports in files with top-level sys.platform asserts on non-matching platforms
1 participant