We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f362cd commit ed8ce73Copy full SHA for ed8ce73
Lib/_pyrepl/_module_completer.py
@@ -228,8 +228,8 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
228
spec = mymod.module_finder.find_spec(mymod.name, None)
229
print("found spec:", spec)
230
mymod.module_finder.invalidate_caches()
231
- spec = mymod.module_finder.find_spec(mymod.name, None)
232
- print("found spec after invalidate:", spec)
+ not_cached_spec = mymod.module_finder.find_spec(mymod.name, None)
+ print("found spec after invalidate:", not_cached_spec)
233
if spec:
234
print("1")
235
assert spec.submodule_search_locations and len(spec.submodule_search_locations) == 1
0 commit comments