1
0
forked from VimPlug/jedi

Refactoring of the contexts to properly use inheritance

This commit is contained in:
Dave Halter
2019-08-23 15:27:15 +02:00
parent 7573e2033a
commit c393a406ee
3 changed files with 132 additions and 106 deletions

View File

@@ -16,7 +16,7 @@ from jedi.inference.base_value import ContextualizedNode, NO_VALUES, \
ValueSet, TreeValue, ValueWrapper
from jedi.inference.lazy_value import LazyKnownValues, LazyKnownValue, \
LazyTreeValue
from jedi.inference.context import AbstractContext
from jedi.inference.context import ValueContext, TreeContextMixin
from jedi.inference.value import iterable
from jedi import parser_utils
from jedi.inference.parser_cache import get_yield_exprs
@@ -164,7 +164,7 @@ class MethodValue(FunctionValue):
return names + (self.py__name__(),)
class FunctionExecutionContext(AbstractContext):
class FunctionExecutionContext(ValueContext, TreeContextMixin):
function_execution_filter = FunctionExecutionFilter
def __init__(self, function_value, var_args):