Skip to content

Commit

Permalink
Removed problematic type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrigg authored and acabal committed Jul 20, 2023
1 parent 1a38b1d commit 2a1a0b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion se/se_epub_generate_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ def evaluate_descendants(node: EasyXmlElement, toc_item: TocItem, textf: str) ->
# END DEBUG

children = node.xpath("./p | ./h1 | ./h2 | ./h3 | ./h4 | ./h5 | ./h6") # h# is now deprecated here, keeping for legacy purposes
child:EasyXmlElement = None
for child in children: # we expect these to be p, h1, h2, h3, h4 etc
if not toc_item.lang:
toc_item.lang = child.get_attr("xml:lang")
Expand Down

0 comments on commit 2a1a0b5

Please sign in to comment.