Skip to content
Merged
Prev Previous commit
Next Next commit
Update Objects/genericaliasobject.c
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
  • Loading branch information
uriyyo and gvanrossum authored Jul 5, 2021
commit 1a1ac841b4f3ad0b5b1ca09afd6d753e327cf5ad
2 changes: 1 addition & 1 deletion Objects/genericaliasobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static PyObject *
ga_getitem(PyObject *self, PyObject *item)
{
gaobject *alias = (gaobject *)self;
// do a lookup for __parameters__ so it gets populated (if not already)
// Populate __parameters__ if needed.
if (alias->parameters == NULL) {
alias->parameters = _Py_make_parameters(alias->args);
if (alias->parameters == NULL) {
Expand Down