mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-14 09:08:56 +08:00
fixed problem with cache duration of star imports
This commit is contained in:
1 parent
151bd3c5a1
commit
9888e2faaf
1 file changed
+4
@@ -13,6 +13,7 @@ import builtin
|
||||
import debug
|
||||
import evaluate
|
||||
import settings
|
||||
import imports
|
||||
|
||||
|
||||
class Module(builtin.CachedModule):
|
||||
@@ -61,6 +62,9 @@ class ModuleWithCursor(Module):
|
||||
""" get the parser lazy """
|
||||
if not self._parser:
|
||||
try:
|
||||
ts, parser = builtin.CachedModule.cache[self.path]
|
||||
imports.invalidate_star_import_cache(parser.module)
|
||||
|
||||
del builtin.CachedModule.cache[self.path]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user