mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-39481: Make functools.cached_property, partial, partialmethod generic (#19427)
This commit is contained in:
parent
584a3cfda4
commit
cecf049673
3 changed files with 10 additions and 0 deletions
|
@ -414,6 +414,8 @@ partial_setstate(partialobject *pto, PyObject *state)
|
|||
static PyMethodDef partial_methods[] = {
|
||||
{"__reduce__", (PyCFunction)partial_reduce, METH_NOARGS},
|
||||
{"__setstate__", (PyCFunction)partial_setstate, METH_O},
|
||||
{"__class_getitem__", (PyCFunction)Py_GenericAlias,
|
||||
METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue