Fix signature to_string

This commit is contained in:
Dave Halter
2019-07-03 23:44:58 -07:00
parent 947bfe7b78
commit ac492ef598
3 changed files with 33 additions and 6 deletions
+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()