module deleted_enum_meta
Use caution when using this Module.
It is critical that all UNO enums extended using DeletedEnumMeta
have a static method _get_deleted_attribs()
that returns a tuple of string.
If _get_deleted_attribs()
is not present a recursion error is raised.
Usage Example.
class AnchorKind(
metaclass=DeletedEnumMeta,
type_name="com.sun.star.text.TextContentAnchorType",
name_space="com.sun.star.text",
):
@staticmethod
def _get_deleted_attribs() -> Tuple[str]:
return ("AT_FRAME",)