We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tuple
1 parent 968b3fb commit 4aa94dfCopy full SHA for 4aa94df
Objects/genericaliasobject.c
@@ -671,12 +671,6 @@ static PyTypeObject Py_GenericAliasIterType = {
671
672
static PyObject *
673
ga_iter(PyObject *self) {
674
- gaobject *alias = (gaobject *)self;
675
- if ((PyTypeObject *)alias->origin != &PyTuple_Type) {
676
- PyErr_SetString(PyExc_TypeError, "Only tuple types can be unpacked with *");
677
- return NULL;
678
- }
679
-
680
gaiterobject *gi = PyObject_GC_New(gaiterobject, &Py_GenericAliasIterType);
681
if (gi == NULL)
682
return NULL;
0 commit comments