diff --git a/lass/python/class_definition.cpp b/lass/python/class_definition.cpp index 6ed81ac7..27ce81b0 100644 --- a/lass/python/class_definition.cpp +++ b/lass/python/class_definition.cpp @@ -161,6 +161,9 @@ ClassDefinition::ClassDefinition( 0, /*tp_vectorcall, exists in 3.8 but only used since 3.9 */ #if PY_VERSION_HEX >= 0x03080000 && PY_VERSION_HEX < 0x03090000 // == 3.8 0, /*tp_print, only exists in 3.8 for backwards compatibility, bpo-37250 */ +#endif +#if PY_VERSION_HEX >= 0x030C0000 // >= 3.12 + 0, /*tp_watched, internal only */ #endif }; type_ = type;