Use __str__ instead of to_string
This commit is contained in:
1 parent
75f654b944
commit
1151700114
5 files changed
+17
-15
No files matched your search
@@ -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 '/'
|
||||
|
||||
Reference in new issue
Block a user