8000 make generics instantiable · python/cpython@34c024d · GitHub
[go: up one dir, main page]

Skip to content

Commit 34c024d

Browse files
committed
make generics instantiable
1 parent fe84458 commit 34c024d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/typevarobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,4 +1071,5 @@ PyTypeObject _PyGeneric_Type = {
10711071
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
10721072
.tp_doc = generic_doc,
10731073
.tp_methods = generic_methods,
1074+
.tp_new = PyType_GenericNew,
10741075
};

0 commit comments

Comments
 (0)
0