We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0bd6bc commit f30aa79Copy full SHA for f30aa79
mypy/newsemanal/semanal.py
@@ -1661,14 +1661,6 @@ def visit_import(self, i: Import) -> None:
1661
self.add_module_symbol(base, base, module_public=module_public,
1662
context=i, module_hidden=not module_public)
1663
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
1670
- return False
1671
-
1672
def visit_import_from(self, imp: ImportFrom) -> None:
1673
self.statement = imp
1674
module_id = self.correct_relative_import(imp)
0 commit comments