Skip to content

Commit 78b3ce4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dba232a commit 78b3ce4

2 files changed

Lines changed: 215 additions & 234 deletions

File tree

mypy/build.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
from mypy.fixup import fixup_module
133133
from mypy.freetree import free_tree
134134
from mypy.fscache import FileSystemCache
135+
from mypy.known_modules import get_known_modules
136+
from mypy.messages import best_matches, pretty_seq
135137
from mypy.metastore import FilesystemMetadataStore, MetadataStore, SqliteMetadataStore
136138
from mypy.modulefinder import (
137139
BuildSource as BuildSource,
@@ -150,8 +152,6 @@
150152
from mypy.renaming import LimitedVariableRenameVisitor, VariableRenameVisitor
151153
from mypy.stats import dump_type_stats
152154
from mypy.stubinfo import is_module_from_legacy_bundled_package, stub_distribution_name
153-
from mypy.known_modules import get_known_modules
154-
from mypy.messages import best_matches, pretty_seq
155155
from mypy.types import Type, instance_cache
156156
from mypy.typestate import reset_global_state, type_state
157157
from mypy.util import json_dumps, json_loads
@@ -3194,8 +3194,7 @@ def module_not_found(
31943194
if reason == ModuleNotFoundReason.NOT_FOUND:
31953195
top_level_target = target.split(".")[0]
31963196
known_modules = get_known_modules(
3197-
manager.find_module_cache.stdlib_py_versions,
3198-
manager.options.python_version,
3197+
manager.find_module_cache.stdlib_py_versions, manager.options.python_version
31993198
)
32003199
matches = best_matches(top_level_target, known_modules, n=3)
32013200
matches = [m for m in matches if m.lower() != top_level_target.lower()]

0 commit comments

Comments
 (0)