summaryrefslogtreecommitdiffstats
path: root/Objects/enumobject.c
diff options
context:
space:
mode:
authorEthan Smith <ethan@ethanhs.me>2020-04-10 04:25:53 (GMT)
committerGitHub <noreply@github.com>2020-04-10 04:25:53 (GMT)
commit7c4185d62d4aec486d82c3ad02acd878db2d3537 (patch)
treed74318ca0c3e092652e64b9fe174edc0bcef9586 /Objects/enumobject.c
parent2fa67df605e4b0803e7e3aac0b85d851b4b4e09a (diff)
downloadcpython-7c4185d62d4aec486d82c3ad02acd878db2d3537.zip
cpython-7c4185d62d4aec486d82c3ad02acd878db2d3537.tar.gz
cpython-7c4185d62d4aec486d82c3ad02acd878db2d3537.tar.bz2
bpo-39481: PEP 585 for enumerate, AsyncGeneratorType, mmap (GH-19421)
Diffstat (limited to 'Objects/enumobject.c')
-rw-r--r--Objects/enumobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/enumobject.c b/Objects/enumobject.c
index 75703be..4a83bb4 100644
--- a/Objects/enumobject.c
+++ b/Objects/enumobject.c
@@ -201,6 +201,8 @@ PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
static PyMethodDef enum_methods[] = {
{"__reduce__", (PyCFunction)enum_reduce, METH_NOARGS, reduce_doc},
+ {"__class_getitem__", (PyCFunction)Py_GenericAlias,
+ METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
{NULL, NULL} /* sentinel */
};