1
0
forked from VimPlug/jedi

find_signatures -> get_signatures, see #1476

This commit is contained in:
Dave Halter
2020-01-22 01:10:38 +01:00
parent 58f54d8391
commit 8cc836e816
15 changed files with 66 additions and 66 deletions

View File

@@ -205,7 +205,7 @@ class Script(object):
with debug.increase_indent_cm('complete'):
completion = Completion(
self._inference_state, self._get_module_context(), self._code_lines,
(line, column), self.find_signatures, fuzzy=fuzzy,
(line, column), self.get_signatures, fuzzy=fuzzy,
)
return completion.complete()
@@ -394,10 +394,10 @@ class Script(object):
def call_signatures(self):
# Deprecated, will be removed.
return self.find_signatures(*self._pos)
return self.get_signatures(*self._pos)
@validate_line_column
def find_signatures(self, line=None, column=None):
def get_signatures(self, line=None, column=None):
"""
Return the function object of the call you're currently in.

View File

@@ -730,7 +730,7 @@ class BaseSignature(Definition):
class Signature(BaseSignature):
"""
`Signature` objects is the return value of `Script.find_signatures`.
`Signature` objects is the return value of `Script.get_signatures`.
It knows what functions you are currently in. e.g. `isinstance(` would
return the `isinstance` function with its params. Without `(` it would
return nothing.