Skip to content

bpo-44490: Add __parameters__ and __getitem__ to types.Union #26980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 6, 2021
Prev Previous commit
Next Next commit
Update unionobject.c
  • Loading branch information
uriyyo committed Jul 3, 2021
commit cea63d4ac51938e2a250e622a6ce07a68a86af3c
2 changes: 1 addition & 1 deletion Objects/unionobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ union_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