gh-148398: add type watcher in _CHECK_ATTR_CLASS (GH-148399)

This commit is contained in:
Neko Asakura
2026-04-12 08:54:03 -04:00
committed by GitHub
parent 3a7df632c9
commit 30c698a655
3 changed files with 9 additions and 0 deletions
+4
View File
@@ -226,6 +226,10 @@ dummy_func(void) {
}
else {
sym_set_const(owner, type);
if ((((PyTypeObject *)type)->tp_flags & Py_TPFLAGS_IMMUTABLETYPE) == 0) {
PyType_Watch(TYPE_WATCHER_ID, type);
_Py_BloomFilter_Add(dependencies, type);
}
}
}
}