···623623 elif bt.type == 'footnote_ref' and (id := cast(str, bt.attrs.get('id', ''))):
624624 result.append(XrefTarget(id, "???", None, None, target_file))
625625 elif bt.type == 'inline':
626626- assert bt.children
626626+ assert bt.children is not None
627627 result += self._collect_ids(bt.children, target_file, typ, False)
628628 elif id := cast(str, bt.attrs.get('id', '')):
629629 # anchors and examples have no titles we could use, but we'll have to put