commit | 7c4185d62d4aec486d82c3ad02acd878db2d3537 | [log] [tgz] |
---|---|---|
author | Ethan Smith <ethan@ethanhs.me> | Thu Apr 09 21:25:53 2020 -0700 |
committer | GitHub <noreply@github.com> | Thu Apr 09 21:25:53 2020 -0700 |
tree | d74318ca0c3e092652e64b9fe174edc0bcef9586 | |
parent | 2fa67df605e4b0803e7e3aac0b85d851b4b4e09a [diff] [blame] |
bpo-39481: PEP 585 for enumerate, AsyncGeneratorType, mmap (GH-19421)
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index a5c0ae0..a1267bd 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c
@@ -816,6 +816,8 @@ #ifdef MS_WINDOWS {"__sizeof__", (PyCFunction) mmap__sizeof__method, METH_NOARGS}, #endif + {"__class_getitem__", (PyCFunction)Py_GenericAlias, METH_O|METH_CLASS, + PyDoc_STR("See PEP 585")}, {NULL, NULL} /* sentinel */ };