Skip to content

Commit 03c5ec3

Browse files
committed
Respect per-module follow_import for empty folders
Fixes #13757
1 parent 13aeaa4 commit 03c5ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2592,7 +2592,7 @@ def find_module_and_diagnose(
25922592
if (
25932593
root_source # Honor top-level modules
25942594
or (
2595-
not result.endswith(".py") # Stubs are always normal
2595+
result.endswith(".pyi") # Stubs are always normal
25962596
and not options.follow_imports_for_stubs
25972597
) # except when they aren't
25982598
or id in mypy.semanal_main.core_modules

0 commit comments

Comments
 (0)