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 @@ -2206,7 +2206,8 @@ static PyType_Slot chain_slots[] = {
2206
2206
static PyType_Spec chain_spec = {
2207
2207
.name = "itertools.chain" ,
2208
2208
.basicsize = sizeof (chainobject ),
2209
- .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE ,
2209
+ .flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE |
2210
+ Py_TPFLAGS_IMMUTABLETYPE ),
2210
2211
.slots = chain_slots ,
2211
2212
};
2212
2213
@@ -4316,7 +4317,8 @@ static PyType_Slot repeat_slots[] = {
4316
4317
static PyType_Spec repeat_spec = {
4317
4318
.name = "itertools.repeat" ,
4318
4319
.basicsize = sizeof (repeatobject ),
4319
- .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE ,
4320
+ .flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE |
4321
+ Py_TPFLAGS_IMMUTABLETYPE ),
4320
4322
.slots = repeat_slots ,
4321
4323
};
4322
4324
You can’t perform that action at this time.
0 commit comments