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
Update Objects/unionobject.c
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
  • Loading branch information
serhiy-storchaka and Fidget-Spinner authored Jul 18, 2021
commit 567d3b856a64e28c7e6967da97447802ad392e2d
2 changes: 1 addition & 1 deletion Objects/unionobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ union_getitem(PyObject *self, PyObject *item)
Py_DECREF(newargs);
if (is_arg_unionable == 0) {
PyErr_Format(PyExc_TypeError,
"Each union arg must be a type, got %.100R", arg);
"Each union argument must be a type, got %.100R", arg);
}
return NULL;
}
Expand Down