Skip to content

Commit e0efc44

Browse files
committed
Relax the assertion.
1 parent 7cbcb6e commit e0efc44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/suggestions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ _Py_CalculateSuggestions(PyObject *dir,
129129
PyObject *name)
130130
{
131131
assert(!PyErr_Occurred());
132-
assert(PyList_CheckExact(dir));
132+
assert(PyList_Check(dir));
133133

134134
Py_ssize_t dir_size = PyList_GET_SIZE(dir);
135135
if (dir_size >= MAX_CANDIDATE_ITEMS) {

0 commit comments

Comments
 (0)