@@ -1024,7 +1024,7 @@ static PyMethodDef gen_methods[] = {
10241024 {"close" , gen_close , METH_NOARGS , close_doc },
10251025 {"__sizeof__" , gen_sizeof , METH_NOARGS , sizeof__doc__ },
10261026 {"__class_getitem__" , Py_GenericAlias , METH_O |METH_CLASS ,
1027- PyDoc_STR ("generators are generic over the type of their values" )},
1027+ PyDoc_STR ("generators are generic over the types of their yield, send, and return values" )},
10281028 {NULL , NULL } /* Sentinel */
10291029};
10301030
@@ -1376,7 +1376,7 @@ static PyMethodDef coro_methods[] = {
13761376 {"close" , gen_close , METH_NOARGS , coro_close_doc },
13771377 {"__sizeof__" , gen_sizeof , METH_NOARGS , sizeof__doc__ },
13781378 {"__class_getitem__" , Py_GenericAlias , METH_O |METH_CLASS ,
1379- PyDoc_STR ("coroutines are generic over the type of their return value " )},
1379+ PyDoc_STR ("coroutines are generic over the types of their yield, send, and return values " )},
13801380 {NULL , NULL } /* Sentinel */
13811381};
13821382
@@ -1822,7 +1822,7 @@ static PyMethodDef async_gen_methods[] = {
18221822 {"aclose" , async_gen_aclose , METH_NOARGS , async_aclose_doc },
18231823 {"__sizeof__" , gen_sizeof , METH_NOARGS , sizeof__doc__ },
18241824 {"__class_getitem__" , Py_GenericAlias ,
1825- METH_O |METH_CLASS , PyDoc_STR ("async generators are generic over the type of their values" )},
1825+ METH_O |METH_CLASS , PyDoc_STR ("async generators are generic over the types of their yield and send values" )},
18261826 {NULL , NULL } /* Sentinel */
18271827};
18281828
0 commit comments