MCPcopy Index your code
hub / github.com/RustPython/RustPython / invalidate_caches

Method invalidate_caches

Lib/importlib/abc.py:43–46  ·  view source on GitHub ↗

An optional method for clearing the finder's cache, if any. This method is used by importlib.invalidate_caches().

(self)

Source from the content-addressed store, hash-verified

41 # hasattr checks we do to support backward compatibility.
42
43 def invalidate_caches(self):
44 """An optional method for clearing the finder's cache, if any.
45 This method is used by importlib.invalidate_caches().
46 """
47
48_register(MetaPathFinder, machinery.BuiltinImporter, machinery.FrozenImporter,
49 machinery.PathFinder, machinery.WindowsRegistryFinder)

Callers 1

invalidate_cachesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected