We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6741b67 commit 896d4baCopy full SHA for 896d4ba
include/pybind11/detail/class.h
@@ -89,11 +89,14 @@ inline PyTypeObject *make_static_property_type() {
89
if (PyType_Ready(type) < 0) {
90
pybind11_fail("make_static_property_type(): failure in PyType_Ready()!");
91
}
92
+
93
# if PY_VERSION_HEX >= 0x030C0000
94
+ // PRE 3.12 FEATURE FREEZE. PLEASE REVIEW AFTER FREEZE.
95
// Since Python-3.12 property-derived types are required to
96
// have dynamic attributes (to set `__doc__`)
97
enable_dynamic_attributes(heap_type);
98
# endif
99
100
setattr((PyObject *) type, "__module__", str("pybind11_builtins"));
101
PYBIND11_SET_OLDPY_QUALNAME(type, name_obj);
102
0 commit comments