bpo-39481: PEP 585 for enumerate, AsyncGeneratorType, mmap (GH-19421)

This commit is contained in:
Ethan Smith 2020-04-09 21:25:53 -07:00 committed by GitHub
parent 2fa67df605
commit 7c4185d62d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 4 deletions

View file

@ -816,6 +816,8 @@ static struct PyMethodDef mmap_object_methods[] = {
#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 */
};