Skip to content
Prev Previous commit
Next Next commit
Update Python/sysmodule.c
  • Loading branch information
JelleZijlstra authored Jul 30, 2025
commit 8c2c1e1849753b6c1fa1588f7837eea55792bb33
2 changes: 1 addition & 1 deletion Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2661,7 +2661,7 @@ sys__clear_type_descriptors(PyObject *module, PyObject *type)
return NULL;
}
PyTypeObject *typeobj = (PyTypeObject *)(type);
Comment thread
JelleZijlstra marked this conversation as resolved.
Outdated
if (!_PyType_HasFeature(typeobj, Py_TPFLAGS_IMMUTABLETYPE)) {
if (_PyType_HasFeature(typeobj, Py_TPFLAGS_IMMUTABLETYPE)) {
PyErr_SetString(PyExc_TypeError, "argument is immutable");
return NULL;
}
Expand Down