1
0
forked from VimPlug/jedi

Revert "Use __str__ instead of to_string"

This reverts commit 1151700114.
This commit is contained in:
Dave Halter
2019-07-31 18:39:17 +02:00
parent 7d2374ed81
commit a5a544cb09
5 changed files with 15 additions and 17 deletions
+2 -5
View File
@@ -178,7 +178,7 @@ class ParamNameInterface(_ParamMixin):
def get_kind(self):
raise NotImplementedError
def __str__(self):
def to_string(self):
raise NotImplementedError
def get_param(self):
@@ -201,7 +201,7 @@ class BaseTreeParamName(ParamNameInterface, AbstractTreeName):
annotation_node = None
default_node = None
def __str__(self):
def to_string(self):
output = self._kind_string() + self.string_name
annotation = self.annotation_node
default = self.default_node
@@ -277,9 +277,6 @@ class ParamNameWrapper(_ParamMixin):
def __getattr__(self, name):
return getattr(self._wrapped_param_name, name)
def __str__(self):
return str(self._wrapped_param_name)
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self._wrapped_param_name)