forked from VimPlug/jedi
Fix class tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user