Fix signature to_string

This commit is contained in:
Dave Halter committed 2019-07-03 23:44:58 -07:00
1 parent 947bfe7b78
commit ac492ef598
3 files changed
+33 -6

No files matched your search

+4 -2
View File
@@ -25,8 +25,10 @@ class AbstractSignature(object):
yield '/'
is_positional = False
if kind == Parameter.KEYWORD_ONLY and not is_kw_only:
yield '*,'
if kind == Parameter.VAR_POSITIONAL:
is_kw_only = True
elif kind == Parameter.KEYWORD_ONLY and not is_kw_only:
yield '*'
is_kw_only = True
yield n.to_string()