Skip to content

Commit 970baf2

Browse files
committed
make _remote_debugging.RemoteUnwinder immutable
1 parent 43ff0a1 commit 970baf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/_remote_debugging_module.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,10 @@ static PyType_Slot RemoteUnwinder_slots[] = {
29942994
static PyType_Spec RemoteUnwinder_spec = {
29952995
.name = "_remote_debugging.RemoteUnwinder",
29962996
.basicsize = sizeof(RemoteUnwinderObject),
2997-
.flags = Py_TPFLAGS_DEFAULT,
2997+
.flags = (
2998+
Py_TPFLAGS_DEFAULT
2999+
| Py_TPFLAGS_IMMUTABLETYPE
3000+
),
29983001
.slots = RemoteUnwinder_slots,
29993002
};
30003003

0 commit comments

Comments
 (0)