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

Function deps_filtered

mypy/build.py:5080–5089  ·  view source on GitHub ↗

Filter dependencies for id with pri < pri_max.

(graph: Graph, vertices: AbstractSet[str], id: str, pri_max: int)

Source from the content-addressed store, hash-verified

5078
5079
5080def deps_filtered(graph: Graph, vertices: AbstractSet[str], id: str, pri_max: int) -> list[str]:
5081 """Filter dependencies for id with pri < pri_max."""
5082 if id not in vertices:
5083 return []
5084 state = graph[id]
5085 return [
5086 dep
5087 for dep in state.dependencies
5088 if dep in vertices and state.priorities.get(dep, PRI_HIGH) < pri_max
5089 ]
5090
5091
5092def transitive_dep_hash(scc: SCC, graph: Graph) -> bytes:

Callers 2

sorted_componentsFunction · 0.85
sorted_components_innerFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…