interrogate: Fix typo in code

Fixes #1627

[skip ci]
This commit is contained in:
rdb 2024-03-12 15:10:14 +01:00
parent 06b9e3af8b
commit 0ce7215ee9

View File

@ -3814,7 +3814,7 @@ write_function_for_name(ostream &out, Object *obj,
// None of the remaps take any keyword arguments, so let's check that
// we take none. This saves some checks later on.
indent(out, 4) << "if (kwds == nullptr || PyDict_GET_SIZE(kwds) == 0) {\n";
if (min_args == 1 && min_args == 1) {
if (min_args == 1 && max_args == 1) {
indent(out, 4) << " PyObject *arg = PyTuple_GET_ITEM(args, 0);\n";
always_returns = write_function_forset(out, mii->second, min_args,
max_args, expected_params, 6,