Visitar URL original
bpo-44633: Fix parameter substitution of the union type with wrong types. by serhiy-storchaka · Pull Request #27218 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into union-wrong-parameter-substitution
  • Loading branch information
serhiy-storchaka committed Jul 17, 2021
commit 1cb3dddb8c0eb6b5d19780267eb9c0628c61277d
4 changes: 1 addition & 3 deletions Objects/unionobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,6 @@ make_union(PyObject *args)
{
assert(PyTuple_CheckExact(args));

unionobject* result = NULL;

args = dedup_and_flatten_args(args);
if (args == NULL) {
return NULL;
Expand All @@ -535,7 +533,7 @@ make_union(PyObject *args)
return result1;
}

result = PyObject_GC_New(unionobject, &_PyUnion_Type);
unionobject *result = PyObject_GC_New(unionobject, &_PyUnion_Type);
if (result == NULL) {
Py_DECREF(args);
return NULL;
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.