Skip to content
Merged
Prev Previous commit
Next Next commit
Update genericaliasobject.c
  • Loading branch information
uriyyo committed Jul 3, 2021
commit 2072f7e73a22ff29718a3238b228a1b2988ed314
4 changes: 2 additions & 2 deletions Objects/genericaliasobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ subs_tvars(PyObject *obj, PyObject *params, PyObject **argitems)
}

PyObject *
_Py_apply_parameters(PyObject *self, PyObject *args, PyObject *parameters, PyObject *item)
_Py_subs_parameters(PyObject *self, PyObject *args, PyObject *parameters, PyObject *item)
{
Py_ssize_t nparams = PyTuple_GET_SIZE(parameters);
if (nparams == 0) {
Expand Down Expand Up @@ -361,7 +361,7 @@ ga_getitem(PyObject *self, PyObject *item)
}
}

PyObject *newargs = _Py_apply_parameters(self, alias->args, alias->parameters, item);
PyObject *newargs = _Py_subs_parameters(self, alias->args, alias->parameters, item);
if (newargs == NULL) {
return NULL;
}
Expand Down