Skip to content

Commit 71f5eda

Browse files
committed
Remove the Py_None check in _validate_paramflags
1 parent adf387f commit 71f5eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3908,7 +3908,7 @@ _validate_paramflags(ctypes_state *st, PyTypeObject *type, PyObject *paramflags,
39083908
"abstract class");
39093909
return 0;
39103910
}
3911-
if (argtypes == NULL || argtypes == Py_None) {
3911+
if (argtypes == NULL) {
39123912
argtypes = info->argtypes;
39133913
}
39143914

0 commit comments

Comments
 (0)