def visit_desc_signature(self, node: Element) -> None:
    self.escape_hyphens += 1
    objtype = node.parent['objtype']
    if (objtype != 'describe'):
        for id in node.get('ids'):
            self.add_anchor(id, node)
    try:
        domain = self.builder.env.get_domain(node.parent['domain'])
        name = domain.get_type_name(domain.object_types[objtype], (self.config.primary_domain == domain.name))
    except (KeyError, ExtensionError):
        name = objtype
    category = self.escape_arg(smart_capwords(name))
    self.body.append(('\n%s {%s} ' % (self.at_deffnx, category)))
    self.at_deffnx = '@deffnx'
    self.desc_type_name = name
def visit_desc_signature(self, node: Element) -> None:
    self.escape_hyphens += 1
    objtype = node.parent['objtype']
    if (objtype != 'describe'):
        for id in node.get('ids'):
            self.add_anchor(id, node)
    try:
        domain = self.builder.env.get_domain(node.parent['domain'])
        name = domain.get_type_name(domain.object_types[objtype], (self.config.primary_domain == domain.name))
    except (KeyError, ExtensionError):
        name = objtype
    category = self.escape_arg(smart_capwords(name))
    self.body.append(('\n%s {%s} ' % (self.at_deffnx, category)))
    self.at_deffnx = '@deffnx'
    self.desc_type_name = name