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 -2
View File
@@ -309,7 +309,7 @@ class SignatureParamName(ParamNameInterface, AbstractNameDefinition):
def string_name(self):
return self._signature_param.name
def __str__(self):
def to_string(self):
s = self._kind_string() + self.string_name
if self._signature_param.has_annotation:
s += ': ' + self._signature_param.annotation_string
@@ -341,7 +341,7 @@ class UnresolvableParamName(ParamNameInterface, AbstractNameDefinition):
def get_kind(self):
return Parameter.POSITIONAL_ONLY
def __str__(self):
def to_string(self):
string = self.string_name
if self._default:
string += '=' + self._default