mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Reuse a function
This commit is contained in:
@@ -314,8 +314,7 @@ class ParamName(BaseTreeParamName):
|
||||
|
||||
def get_param(self):
|
||||
params_names, _ = self.parent_context.get_executed_param_names_and_issues()
|
||||
param_node = search_ancestor(self.tree_name, 'param')
|
||||
return params_names[param_node.position_index]
|
||||
return params_names[self._get_param_node().position_index]
|
||||
|
||||
|
||||
class ParamNameWrapper(_ParamMixin):
|
||||
|
||||
Reference in New Issue
Block a user