MCPcopy
hub / github.com/python/mypy / flush_cache

Method flush_cache

mypy/server/update.py:327–333  ·  view source on GitHub ↗

Flush AST cache. This needs to be called after each increment, or file changes won't be detected reliably.

(self)

Source from the content-addressed store, hash-verified

325 return self.update(changed_modules, [])
326
327 def flush_cache(self) -> None:
328 """Flush AST cache.
329
330 This needs to be called after each increment, or file changes won't
331 be detected reliably.
332 """
333 self.manager.ast_cache.clear()
334
335 def update_one(
336 self,

Callers 4

flush_cachesMethod · 0.80
reload_moduleMethod · 0.80
reloadMethod · 0.80
build_incrementMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by 1

build_incrementMethod · 0.64