···623 elif bt.type == 'footnote_ref' and (id := cast(str, bt.attrs.get('id', ''))):
624 result.append(XrefTarget(id, "???", None, None, target_file))
625 elif bt.type == 'inline':
626- assert bt.children
627 result += self._collect_ids(bt.children, target_file, typ, False)
628 elif id := cast(str, bt.attrs.get('id', '')):
629 # anchors and examples have no titles we could use, but we'll have to put
···623 elif bt.type == 'footnote_ref' and (id := cast(str, bt.attrs.get('id', ''))):
624 result.append(XrefTarget(id, "???", None, None, target_file))
625 elif bt.type == 'inline':
626+ assert bt.children is not None
627 result += self._collect_ids(bt.children, target_file, typ, False)
628 elif id := cast(str, bt.attrs.get('id', '')):
629 # anchors and examples have no titles we could use, but we'll have to put