We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e819ce commit 6baf878Copy full SHA for 6baf878
1 file changed
Objects/sliceobject.c
@@ -560,6 +560,7 @@ static PyMethodDef slice_methods[] = {
560
METH_O, slice_indices_doc},
561
{"__reduce__", (PyCFunction)slice_reduce,
562
METH_NOARGS, reduce_doc},
563
+ {"__class_getitem__", Py_GenericAlias, METH_O|METH_CLASS, "See PEP 585"},
564
{NULL, NULL}
565
};
566
0 commit comments