Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2592,11 +2592,11 @@ def find_module_and_diagnose(
if (
root_source # Honor top-level modules
or (
not result.endswith(".py") # Stubs are always normal
and not options.follow_imports_for_stubs
) # except when they aren't
or id in mypy.semanal_main.core_modules
): # core is always normal
result.endswith(".pyi") # Stubs are always normal
and not options.follow_imports_for_stubs # except when they aren't
)
or id in mypy.semanal_main.core_modules # core is always normal
):
follow_imports = "normal"
if skip_diagnose:
pass
Expand Down