1
0
forked from VimPlug/jedi

Some sother small test improvements

This commit is contained in:
Dave Halter
2020-02-13 09:34:33 +01:00
parent aef675c79b
commit b4628abc60
3 changed files with 14 additions and 7 deletions

View File

@@ -545,21 +545,22 @@ class Script(object):
string.
:rtype: :class:`refactoring.Refactoring`
"""
return self._extract_variable(line, column, **kwargs)
return self._extract_variable(line, column, **kwargs) # Python 2...
def _extract_variable(self, line, column, new_name): # Python 2...
def _extract_variable(self, line, column, new_name, until_line=None, until_column=None):
raise NotImplementedError
def extract_function(self, line=None, column=None, **kwargs):
"""
"""
return self._extract_method(line, column, **kwargs)
return self._extract_method(line, column, **kwargs) # Python 2...
def _extract_function(self, line, column, new_name): # Python 2...
def _extract_function(self, line, column, new_name, until_line=None, until_column=None):
raise NotImplementedError
def inline_variable(self, line=None, column=None, until_line=None, until_column=None):
def inline(self, line=None, column=None):
"""
Inlines a variable under the cursor.
"""
raise NotImplementedError