forked from VimPlug/jedi
Add slots to the PythonMixin.
This commit is contained in:
@@ -59,6 +59,11 @@ class DocstringMixin(object):
|
|||||||
|
|
||||||
|
|
||||||
class PythonMixin(object):
|
class PythonMixin(object):
|
||||||
|
"""
|
||||||
|
Some Python specific utitilies.
|
||||||
|
"""
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
def get_definition(self):
|
def get_definition(self):
|
||||||
if self.type in ('newline', 'endmarker'):
|
if self.type in ('newline', 'endmarker'):
|
||||||
raise ValueError('Cannot get the indentation of whitespace or indentation.')
|
raise ValueError('Cannot get the indentation of whitespace or indentation.')
|
||||||
|
|||||||
Reference in New Issue
Block a user