Skip to content

Commit 8d42ca7

Browse files
author
Ivan Levkivskyi
committed
Fix processing of aliases in base classes and of chained aliases; add tests
1 parent 3e895d6 commit 8d42ca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/server/deps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_dependencies(target: MypyFile,
106106
python_version: Tuple[int, int]) -> Dict[str, Set[str]]:
107107
"""Get all dependencies of a node, recursively."""
108108
visitor = DependencyVisitor(type_map, python_version)
109-
visitor.alias_deps = target.alias_deps
109+
visitor.alias_deps = set() #target.alias_deps
110110
target.accept(visitor)
111111
return visitor.map
112112

@@ -119,7 +119,7 @@ def get_dependencies_of_target(module_id: str,
119119
"""Get dependencies of a target -- don't recursive into nested targets."""
120120
# TODO: Add tests for this function.
121121
visitor = DependencyVisitor(type_map, python_version)
122-
visitor.alias_deps = module_tree.alias_deps
122+
visitor.alias_deps = set() #module_tree.alias_deps
123123
visitor.scope.enter_file(module_id)
124124
if isinstance(target, MypyFile):
125125
# Only get dependencies of the top-level of the module. Don't recurse into

0 commit comments

Comments
 (0)