File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2193,7 +2193,8 @@ static PyType_Slot chain_slots[] = {
2193
2193
static PyType_Spec chain_spec = {
2194
2194
.name = "itertools.chain" ,
2195
2195
.basicsize = sizeof (chainobject ),
2196
- .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE ,
2196
+ .flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE |
2197
+ Py_TPFLAGS_IMMUTABLETYPE ),
2197
2198
.slots = chain_slots ,
2198
2199
};
2199
2200
@@ -4303,7 +4304,8 @@ static PyType_Slot repeat_slots[] = {
4303
4304
static PyType_Spec repeat_spec = {
4304
4305
.name = "itertools.repeat" ,
4305
4306
.basicsize = sizeof (repeatobject ),
4306
- .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE ,
4307
+ .flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE |
4308
+ Py_TPFLAGS_IMMUTABLETYPE ),
4307
4309
.slots = repeat_slots ,
4308
4310
};
4309
4311
You can’t perform that action at this time.
0 commit comments