diff --git a/jedi/evaluate/compiled/mixed.py b/jedi/evaluate/compiled/mixed.py index 87ba8d225..e56373ebb 100644 --- a/jedi/evaluate/compiled/mixed.py +++ b/jedi/evaluate/compiled/mixed.py @@ -10,6 +10,7 @@ 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 @@ def __init__(self, evaluator, mixed_object, is_instance=False): #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,