Skip to content

Commit 2cb6be9

Browse files
committed
Implement "s" type in ParseTupleAndKeywords
1 parent fc906f0 commit 2cb6be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/args.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func ParseTupleAndKeywords(args Tuple, kwargs StringDict, format string, kwlist
441441
switch op {
442442
case "O":
443443
*result = arg
444-
case "U":
444+
case "U", "s":
445445
if _, ok := arg.(String); !ok {
446446
panic(ExceptionNewf(TypeError, "%s() argument %d must be str, not %s", name, i+1, arg.Type().Name))
447447
}

0 commit comments

Comments
 (0)