1
0
forked from VimPlug/jedi

Docs: Document projects

This commit is contained in:
Dave Halter
2020-03-14 15:25:03 +01:00
parent 851980e2a9
commit 94f99aaeb3
2 changed files with 13 additions and 3 deletions

View File

@@ -650,6 +650,8 @@ class Script(object):
def inline(self, line=None, column=None):
"""
Inlines a variable under the cursor.
:rtype: :class:`refactoring.Refactoring`
"""
names = [d._name for d in self.get_references(line, column, include_builtins=True)]
return refactoring.inline(self._inference_state, names)