Skip to content

Commit

Permalink
Add future-notice comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sizmailov committed Sep 5, 2022
1 parent 6741b67 commit 896d4ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/pybind11/detail/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ inline PyTypeObject *make_static_property_type() {
if (PyType_Ready(type) < 0) {
pybind11_fail("make_static_property_type(): failure in PyType_Ready()!");
}

# if PY_VERSION_HEX >= 0x030C0000
// PRE 3.12 FEATURE FREEZE. PLEASE REVIEW AFTER FREEZE.
// Since Python-3.12 property-derived types are required to
// have dynamic attributes (to set `__doc__`)
enable_dynamic_attributes(heap_type);
# endif

setattr((PyObject *) type, "__module__", str("pybind11_builtins"));
PYBIND11_SET_OLDPY_QUALNAME(type, name_obj);

Expand Down

0 comments on commit 896d4ba

Please sign in to comment.