Add slots to the PythonMixin.
This commit is contained in:
1 parent
536e62e67d
commit
fe49fc9b99
1 file changed
+5
@@ -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.')
|
||||
|
||||
Reference in new issue
Block a user