Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92c29e7

Browse files
committed
Simplify Generic creation
1 parent be70e3c commit 92c29e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/typevarobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ _Py_subscript_generic(PyThreadState* unused, PyObject *params)
15371537
return NULL;
15381538
}
15391539
PyObject *args[2] = {(PyObject *)interp->cached_objects.generic_type, params};
1540-
PyObject *result = call_typing_func_object("_generic_class_getitem", args, 2);
1540+
PyObject *result = call_typing_func_object("_GenericAlias", args, 2);
15411541
Py_DECREF(params);
15421542
return result;
15431543
}

0 commit comments

Comments
 (0)