Skip to content

Commit 97614e5

Browse files
committed
resolve comments
1 parent ec764c1 commit 97614e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ format_missing(PyThreadState *tstate, const char *kind,
15551555
if (name_str == NULL)
15561556
return;
15571557
_PyErr_Format(tstate, PyExc_TypeError,
1558-
"%U() missing %zi required %s argument%s: %U",
1558+
"%U() missing %zd required %s argument%s: %U",
15591559
qualname,
15601560
len,
15611561
kind,

Python/getargs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,9 +2421,9 @@ vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs,
24212421
if (i < parser->min) {
24222422
/* Less arguments than required */
24232423
if (i < pos) {
2424-
Py_ssize_t min = Py_MIN(pos, parser->min);
2424+
int min = Py_MIN(pos, parser->min);
24252425
PyErr_Format(PyExc_TypeError,
2426-
"%.200s%s takes %s %zd positional argument%s"
2426+
"%.200s%s takes %s %d positional argument%s"
24272427
" (%zd given)",
24282428
(parser->fname == NULL) ? "function" : parser->fname,
24292429
(parser->fname == NULL) ? "" : "()",

0 commit comments

Comments
 (0)