MCPcopy Create free account
hub / github.com/python/mypy / is_silent_import_module

Function is_silent_import_module

mypy/build.py:5130–5136  ·  view source on GitHub ↗
(manager: BuildManager, path: str)

Source from the content-addressed store, hash-verified

5128
5129
5130def is_silent_import_module(manager: BuildManager, path: str) -> bool:
5131 if manager.options.no_silence_site_packages:
5132 return False
5133 # Silence errors in site-package dirs and typeshed
5134 if any(is_sub_path_normabs(path, dir) for dir in manager.search_paths.package_path):
5135 return True
5136 return any(is_sub_path_normabs(path, dir) for dir in manager.search_paths.typeshed_path)
5137
5138
5139def write_undocumented_ref_info(

Callers 2

new_stateMethod · 0.85
find_module_and_diagnoseFunction · 0.85

Calls 2

is_sub_path_normabsFunction · 0.90
anyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…