Skip to content

Commit

Permalink
Add assert not self.orphan_tp_list to depart_desc_parameterlist
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Aug 23, 2024
1 parent e40977a commit 5318691
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinx/writers/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ def visit_desc_parameterlist(self, node: Element) -> None:

def depart_desc_parameterlist(self, node: Element) -> None:
# close parameterlist, open return annotation
assert not self.orphan_tp_list
self.body.append('}' + CR + '{')

def visit_desc_type_parameter_list(self, node: Element) -> None:
Expand Down

0 comments on commit 5318691

Please sign in to comment.