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

Method suppress_dependency

mypy/build.py:3348–3354  ·  view source on GitHub ↗
(self, dep: str)

Source from the content-addressed store, hash-verified

3346 self.suppressed_set.remove(dep)
3347
3348 def suppress_dependency(self, dep: str) -> None:
3349 if dep in self.dependencies_set:
3350 self.dependencies.remove(dep)
3351 self.dependencies_set.remove(dep)
3352 if dep not in self.suppressed_set:
3353 self.suppressed.append(dep)
3354 self.suppressed_set.add(dep)
3355
3356 def compute_dependencies(self) -> None:
3357 """Compute a module's dependencies after parsing it.

Callers 1

load_graphFunction · 0.80

Calls 3

appendMethod · 0.80
removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected