aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/interpolationobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/interpolationobject.c')
-rw-r--r--Objects/interpolationobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/interpolationobject.c b/Objects/interpolationobject.c
index aaea3b8c067..a5d407a7b0e 100644
--- a/Objects/interpolationobject.c
+++ b/Objects/interpolationobject.c
@@ -137,6 +137,8 @@ interpolation_reduce(PyObject *op, PyObject *Py_UNUSED(dummy))
static PyMethodDef interpolation_methods[] = {
{"__reduce__", interpolation_reduce, METH_NOARGS,
PyDoc_STR("__reduce__() -> (cls, state)")},
+ {"__class_getitem__", Py_GenericAlias,
+ METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
{NULL, NULL},
};