Skip to content

Commit ec39835

Browse files
committed
Strengthen check.
1 parent 7cbcb6e commit ec39835

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_suggestions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _suggestions__generate_suggestions_impl(PyObject *module,
2121
/*[clinic end generated code: output=79be7b653ae5e7ca input=ba2a8dddc654e33a]*/
2222
{
2323
// Check if dir is a list
24-
if (!PyList_Check(candidates)) {
24+
if (!PyList_CheckExact(candidates)) {
2525
PyErr_SetString(PyExc_TypeError, "candidates must be a list");
2626
return NULL;
2727
}

0 commit comments

Comments
 (0)