1
0
forked from VimPlug/jedi

Cache _apply_decorators

This commit is contained in:
Dave Halter
2018-12-14 09:36:13 +01:00
parent d1be92ac80
commit fda6409600

View File

@@ -23,6 +23,7 @@ from jedi.evaluate.context import TreeInstance
from jedi.evaluate.finder import NameFinder
from jedi.evaluate.helpers import is_string, is_literal, is_number, is_compiled
from jedi.evaluate.compiled.access import COMPARISON_OPERATORS
from jedi.evaluate.cache import evaluator_method_cache
def _limit_context_infers(func):
@@ -616,6 +617,9 @@ def tree_name_to_contexts(evaluator, context, tree_name):
return types
# We don't want to have functions/classes that are created by the same
# tree_node.
@evaluator_method_cache()
def _apply_decorators(context, node):
"""
Returns the function, that should to be executed in the end.