Skip to content

Use the fallback for ModuleSpec early if it can never be resolved#20167

Merged
ilevkivskyi merged 2 commits intopython:masterfrom
sterliakov:bugfix/gh-18237-importlib-semanal-infinite
Nov 3, 2025
Merged

Use the fallback for ModuleSpec early if it can never be resolved#20167
ilevkivskyi merged 2 commits intopython:masterfrom
sterliakov:bugfix/gh-18237-importlib-semanal-infinite

Conversation

@sterliakov
Copy link
Collaborator

Fixes #18237.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit 40821bf into python:master Nov 3, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INTERNAL ERROR: maximum semantic analysis iteration count reached Found 1 error in 1 file (errors prevented further checking)

2 participants