def run(self, **kwargs: Any) -> None: citations = thebibliography() for node in list(self.document.findall(nodes.citation)): node.parent.remove(node) citations += node if len(citations) > 0: self.document += citations
def run(self, **kwargs) -> None: citations = thebibliography() for node in self.document.traverse(nodes.citation): node.parent.remove(node) citations += node if len(citations) > 0: self.document += citations
def apply(self, **kwargs): # type: (Any) -> None citations = thebibliography() for node in self.document.traverse(nodes.citation): node.parent.remove(node) citations += node if len(citations) > 0: self.document += citations
def apply(self): # type: () -> None citations = thebibliography() for node in self.document.traverse(nodes.citation): node.parent.remove(node) citations += node if len(citations) > 0: self.document += citations