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

Method post_parse_all

mypy/build.py:1145–1152  ·  view source on GitHub ↗
(self, states: list[State])

Source from the content-addressed store, hash-verified

1143 return parallel_parsed_states, parallel_parsed_states_set
1144
1145 def post_parse_all(self, states: list[State]) -> None:
1146 for state in states:
1147 state.compute_dependencies()
1148 if self.workers and state.tree:
1149 # We don't need imports in coordinator process anymore, we parse only to
1150 # compute dependencies.
1151 state.tree.imports = []
1152 del self.ast_cache[state.id]
1153
1154 def use_fine_grained_cache(self) -> bool:
1155 return self.cache_enabled and self.options.use_fine_grained_cache

Callers 1

parse_allMethod · 0.95

Calls 1

compute_dependenciesMethod · 0.80

Tested by

no test coverage detected