MCPcopy Index your code
hub / github.com/python/mypy / ignore_suppressed_imports

Function ignore_suppressed_imports

mypy/dmypy_server.py:159–164  ·  view source on GitHub ↗

Can we skip looking for newly unsuppressed imports to module?

(module: str)

Source from the content-addressed store, hash-verified

157
158
159def ignore_suppressed_imports(module: str) -> bool:
160 """Can we skip looking for newly unsuppressed imports to module?"""
161 # Various submodules of 'encodings' can be suppressed, since it
162 # uses module-level '__getattr__'. Skip them since there are many
163 # of them, and following imports to them is kind of pointless.
164 return module.startswith("encodings.")
165
166
167ModulePathPair: _TypeAlias = tuple[str, str]

Callers 1

find_added_suppressedMethod · 0.85

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…