1
0
forked from VimPlug/jedi

Add slots to the PythonMixin.

This commit is contained in:
Dave Halter
2017-05-07 15:06:34 +02:00
parent 536e62e67d
commit fe49fc9b99

View File

@@ -59,6 +59,11 @@ class DocstringMixin(object):
class PythonMixin(object):
"""
Some Python specific utitilies.
"""
__slots__ = ()
def get_definition(self):
if self.type in ('newline', 'endmarker'):
raise ValueError('Cannot get the indentation of whitespace or indentation.')