We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3facd78 commit bc66822Copy full SHA for bc66822
mypy/build.py
@@ -2671,7 +2671,10 @@ def find_module_and_diagnose(
2671
# negatives. (Unless there are stubs but they are incomplete.)
2672
global_ignore_missing_imports = manager.options.ignore_missing_imports
2673
if (
2674
- any(".".join(id_components[:i]) in legacy_bundled_packages for i in range(len(id_components), 0, -1))
+ any(
2675
+ ".".join(id_components[:i]) in legacy_bundled_packages
2676
+ for i in range(len(id_components), 0, -1)
2677
+ )
2678
and global_ignore_missing_imports
2679
and not options.ignore_missing_imports_per_module
2680
and result is ModuleNotFoundReason.APPROVED_STUBS_NOT_INSTALLED
0 commit comments