Skip to content

Commit 6321d14

Browse files
committed
js nodes, nodes.Node -> Node
1 parent 1fe8793 commit 6321d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/domains/javascript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class JSObject(ObjectDescription[Tuple[str, str]]):
5050
'noindexentry': directives.flag,
5151
}
5252

53-
def get_display_prefix(self) -> List[nodes.Node]:
53+
def get_display_prefix(self) -> List[Node]:
5454
#: what is displayed right before the documentation entry
5555
return []
5656

@@ -240,7 +240,7 @@ class JSConstructor(JSCallable):
240240

241241
allow_nesting = True
242242

243-
def get_display_prefix(self) -> List[nodes.Node]:
243+
def get_display_prefix(self) -> List[Node]:
244244
return [addnodes.desc_sig_keyword('class', 'class'),
245245
addnodes.desc_sig_space()]
246246

0 commit comments

Comments
 (0)