Skip to content

Commit 1c4aadb

Browse files
authored
Format with Black 23.1.0 (#95)
1 parent e009ab9 commit 1c4aadb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sphinxext/opengraph/descriptionparser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def __init__(
1515
known_titles: Iterable[str] = None,
1616
document: nodes.document = None,
1717
):
18-
1918
# Hack to prevent requirement for the doctree to be passed in.
2019
# It's only used by doctree.walk(...) to print debug messages.
2120
if document is None:
@@ -43,7 +42,6 @@ def debug(*args, **kwaargs):
4342
self.stop = False
4443

4544
def dispatch_visit(self, node: nodes.Element) -> None:
46-
4745
if self.stop:
4846
raise nodes.StopTraversal
4947

@@ -90,7 +88,6 @@ def dispatch_visit(self, node: nodes.Element) -> None:
9088
self.description += text
9189

9290
def dispatch_departure(self, node: nodes.Element) -> None:
93-
9491
# Separate title from text
9592
if isinstance(node, nodes.title):
9693
self.description += ":"
@@ -121,7 +118,6 @@ def get_description(
121118
known_titles: Iterable[str] = None,
122119
document: nodes.document = None,
123120
):
124-
125121
mcv = DescriptionParser(description_length, known_titles, document)
126122
doctree.walkabout(mcv)
127123
return mcv.description

0 commit comments

Comments
 (0)