Skip to content

Commit f30aa79

Browse files
bluetechmsullivan
authored andcommitted
New analyzer: remove unused function allow_patching (#7270)
1 parent a0bd6bc commit f30aa79

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mypy/newsemanal/semanal.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,14 +1661,6 @@ def visit_import(self, i: Import) -> None:
16611661
self.add_module_symbol(base, base, module_public=module_public,
16621662
context=i, module_hidden=not module_public)
16631663

1664-
def allow_patching(self, parent_mod: MypyFile, child: str) -> bool:
1665-
if child not in parent_mod.names:
1666-
return True
1667-
node = parent_mod.names[child].node
1668-
if isinstance(node, Var) and node.is_suppressed_import:
1669-
return True
1670-
return False
1671-
16721664
def visit_import_from(self, imp: ImportFrom) -> None:
16731665
self.statement = imp
16741666
module_id = self.correct_relative_import(imp)

0 commit comments

Comments
 (0)