Revert "Use __str__ instead of to_string"

This reverts commit 1151700114.
This commit is contained in:
Dave Halter committed 2019-07-31 18:39:17 +02:00
1 parent 7d2374ed81
commit a5a544cb09
5 files changed
+15 -17

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ from jedi._compatibility import Parameter
class _SignatureMixin(object):
def __str__(self):
def to_string(self):
def param_strings():
is_positional = False
is_kw_only = False
@@ -19,7 +19,7 @@ class _SignatureMixin(object):
yield '*'
is_kw_only = True
yield str(n)
yield n.to_string()
if is_positional:
yield '/'