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

Method reload_meta

mypy/build.py:3001–3014  ·  view source on GitHub ↗

Force reload of cache meta. This is used by parallel checking workers to update shared information that may have changed after initial graph loading. Currently, this is only the interface hash.

(self)

Source from the content-addressed store, hash-verified

2999 )
3000
3001 def reload_meta(self) -> None:
3002 """Force reload of cache meta.
3003
3004 This is used by parallel checking workers to update shared information
3005 that may have changed after initial graph loading. Currently, this is only
3006 the interface hash.
3007 """
3008 assert self.manager.parallel_worker
3009 assert self.path is not None
3010 new_meta_pair = find_cache_meta(self.id, self.path, self.manager, skip_validation=True)
3011 assert new_meta_pair is not None
3012 new_meta, _ = new_meta_pair
3013 # Copy relevant information from new meta (which may be incomplete).
3014 self.interface_hash = new_meta.interface_hash
3015
3016 def add_ancestors(self) -> None:
3017 if self.path is not None:

Callers 1

maybe_load_depsFunction · 0.80

Calls 1

find_cache_metaFunction · 0.85

Tested by

no test coverage detected