We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ec1f9 commit a8ba9e1Copy full SHA for a8ba9e1
include/pybind11/detail/class.h
@@ -89,11 +89,11 @@ 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
-# if PY_VERSION >= 0x03110000
+# if PY_VERSION >= 0x03110000
93
// Since Python-3.11 property-derived types are required to
94
// have dynamic attributes (to set `__doc__`)
95
enable_dynamic_attributes(heap_type);
96
-# endif
+# endif
97
setattr((PyObject *) type, "__module__", str("pybind11_builtins"));
98
PYBIND11_SET_OLDPY_QUALNAME(type, name_obj);
99
0 commit comments