1
0
forked from VimPlug/jedi

Fix class tests

This commit is contained in:
Dave Halter
2019-08-17 23:52:52 +02:00
parent 895e774962
commit 0c419a5094
11 changed files with 55 additions and 38 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ def get_executed_params_and_issues(execution_context, arguments):
# Default params are part of the value where the function was defined.
# This means that they might have access on class variables that the
# function itself doesn't have.
default_param_value = execution_context.function_value.get_default_param_value()
default_param_context = execution_context.function_value.get_default_param_context()
for param in funcdef.get_params():
param_dict[param.name.value] = param
@@ -172,7 +172,7 @@ def get_executed_params_and_issues(execution_context, arguments):
)
)
else:
result_arg = LazyTreeValue(default_param_value, param.default)
result_arg = LazyTreeValue(default_param_context, param.default)
is_default = True
else:
result_arg = argument