We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2562140 commit e898652Copy full SHA for e898652
mypy/build.py
@@ -2592,11 +2592,11 @@ def find_module_and_diagnose(
2592
if (
2593
root_source # Honor top-level modules
2594
or (
2595
- not result.endswith(".py") # Stubs are always normal
2596
- and not options.follow_imports_for_stubs
2597
- ) # except when they aren't
2598
- or id in mypy.semanal_main.core_modules
2599
- ): # 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
+ ):
2600
follow_imports = "normal"
2601
if skip_diagnose:
2602
pass
0 commit comments