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

Method add_dependency

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

Source from the content-addressed store, hash-verified

3338 self.time_spent_us += time_spent_us(t0)
3339
3340 def add_dependency(self, dep: str) -> None:
3341 if dep not in self.dependencies_set:
3342 self.dependencies.append(dep)
3343 self.dependencies_set.add(dep)
3344 if dep in self.suppressed_set:
3345 self.suppressed.remove(dep)
3346 self.suppressed_set.remove(dep)
3347
3348 def suppress_dependency(self, dep: str) -> None:
3349 if dep in self.dependencies_set:

Callers 3

compute_dependenciesMethod · 0.95
load_graphFunction · 0.45

Calls 3

appendMethod · 0.80
addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected