mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Add memoization where it needs to be. Fixes #894.
This commit is contained in:
@@ -10,6 +10,7 @@ from jedi.evaluate import compiled
|
||||
from jedi.cache import underscore_memoization
|
||||
from jedi.evaluate import imports
|
||||
from jedi.evaluate.context import Context
|
||||
from jedi.evaluate.cache import memoize_default
|
||||
|
||||
|
||||
class MixedObject(object):
|
||||
@@ -101,6 +102,7 @@ class MixedObjectFilter(compiled.CompiledObjectFilter):
|
||||
#return MixedName(self._evaluator, self._compiled_object, name)
|
||||
|
||||
|
||||
@memoize_default(evaluator_is_first_arg=True)
|
||||
def _load_module(evaluator, path, python_object):
|
||||
module = parse(
|
||||
grammar=evaluator.grammar,
|
||||
|
||||
Reference in New Issue
Block a user