diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-17 11:46:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 11:46:16 (GMT) |
commit | 054f496bd45cf94eac4158fd60ac95ab5f8e45c4 (patch) | |
tree | cd805377e846048398ff86cec510573c23a76d18 /Modules | |
parent | 4dba0a6d871c24bef8570e4f35669a0db89c2e3b (diff) | |
download | cpython-054f496bd45cf94eac4158fd60ac95ab5f8e45c4.zip cpython-054f496bd45cf94eac4158fd60ac95ab5f8e45c4.tar.gz cpython-054f496bd45cf94eac4158fd60ac95ab5f8e45c4.tar.bz2 |
gh-85283: Fix Argument Clinic for md5 extension (#110976)
Limited C API supports the defining class under some conditions.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/clinic/md5module.c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/clinic/md5module.c.h b/Modules/clinic/md5module.c.h index 11db795..1d98c57 100644 --- a/Modules/clinic/md5module.c.h +++ b/Modules/clinic/md5module.c.h @@ -9,7 +9,7 @@ PyDoc_STRVAR(MD5Type_copy__doc__, "Return a copy of the hash object."); #define MD5TYPE_COPY_METHODDEF \ - {"copy", _PyCFunction_CAST(MD5Type_copy), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, MD5Type_copy__doc__}, + {"copy", (PyCFunction)(void(*)(void))MD5Type_copy, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, MD5Type_copy__doc__}, static PyObject * MD5Type_copy_impl(MD5object *self, PyTypeObject *cls); @@ -97,4 +97,4 @@ _md5_md5(PyObject *module, PyObject *args, PyObject *kwargs) exit: return return_value; } -/*[clinic end generated code: output=015f7613e3a9bb93 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=81702ec915f36236 input=a9049054013a1b77]*/ |