Skip to content

Commit

Permalink
js nodes, nodes.Node -> Node
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Oct 3, 2021
1 parent 592ca14 commit 467a5bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx/domains/javascript.py
Expand Up @@ -50,7 +50,7 @@ class JSObject(ObjectDescription[Tuple[str, str]]):
'noindexentry': directives.flag,
}

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

Expand Down Expand Up @@ -240,7 +240,7 @@ class JSConstructor(JSCallable):

allow_nesting = True

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

Expand Down

0 comments on commit 467a5bc

Please sign in to comment.