Skip to content

Commit 896d4ba

Browse files
committed
Add future-notice comment
1 parent 6741b67 commit 896d4ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/pybind11/detail/class.h

+3
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,14 @@ inline PyTypeObject *make_static_property_type() {
8989
if (PyType_Ready(type) < 0) {
9090
pybind11_fail("make_static_property_type(): failure in PyType_Ready()!");
9191
}
92+
9293
# if PY_VERSION_HEX >= 0x030C0000
94+
// PRE 3.12 FEATURE FREEZE. PLEASE REVIEW AFTER FREEZE.
9395
// Since Python-3.12 property-derived types are required to
9496
// have dynamic attributes (to set `__doc__`)
9597
enable_dynamic_attributes(heap_type);
9698
# endif
99+
97100
setattr((PyObject *) type, "__module__", str("pybind11_builtins"));
98101
PYBIND11_SET_OLDPY_QUALNAME(type, name_obj);
99102

0 commit comments

Comments
 (0)