Skip to content

Commit b3c5df6

Browse files
committed
Revert PR python#3203
1 parent 2b824bd commit b3c5df6

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

mypy/fixup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
)
1616
from mypy.visitor import NodeVisitor
1717

18-
from mypy.semanal import rev_module_rename_map
19-
2018

2119
def fixup_module_pass_one(tree: MypyFile, modules: Dict[str, MypyFile],
2220
quick_and_dirty: bool) -> None:
@@ -243,7 +241,6 @@ def lookup_qualified(modules: Dict[str, MypyFile], name: str,
243241

244242
def lookup_qualified_stnode(modules: Dict[str, MypyFile], name: str,
245243
quick_and_dirty: bool) -> Optional[SymbolTableNode]:
246-
name = rev_module_rename_map.get(name, name)
247244
head = name
248245
rest = []
249246
while True:

mypy/semanal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@
124124
'_importlib_modulespec.Loader': 'importlib.abc.Loader'
125125
}
126126

127-
rev_module_rename_map = {v: k for (k, v) in module_rename_map.items()}
128-
129127
# Hard coded type promotions (shared between all Python versions).
130128
# These add extra ad-hoc edges to the subtyping relation. For example,
131129
# int is considered a subtype of float, even though there is no

0 commit comments

Comments
 (0)