diff options
| author | Ethan Smith <ethan@ethanhs.me> | 2020-04-13 21:53:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-13 21:53:04 -0700 |
| commit | cecf049673da6a24435acd1a6a3b34472b323c97 (patch) | |
| tree | 10ade472188b307c3a8874124a2ce5696a1da4c8 /Modules/_functoolsmodule.c | |
| parent | 584a3cfda4d7a65ea0c1ea1ee541378bb7be46ca (diff) | |
| download | cpython-git-cecf049673da6a24435acd1a6a3b34472b323c97.tar.gz | |
bpo-39481: Make functools.cached_property, partial, partialmethod generic (#19427)
Diffstat (limited to 'Modules/_functoolsmodule.c')
| -rw-r--r-- | Modules/_functoolsmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index f3d8658044..2f1b47a5b0 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -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 */ }; |
