MCPcopy Index your code
hub / github.com/python/cpython / 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 def discover(self, parent=None):
49 """An optional method which searches for possible specs with given *parent*

Callers 1

invalidate_cachesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected