Use __str__ instead of to_string

This commit is contained in:
Dave Halter
2019-07-31 00:07:38 +02:00
parent 75f654b944
commit 1151700114
5 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ from jedi._compatibility import Parameter
class _SignatureMixin(object):
def to_string(self):
def __str__(self):
def param_strings():
is_positional = False
is_kw_only = False
@@ -19,7 +19,7 @@ class _SignatureMixin(object):
yield '*'
is_kw_only = True
yield n.to_string()
yield str(n)
if is_positional:
yield '/'