Skip to content

Commit 9f7ddd9

Browse files
docutils: docutils.nodes.Node.next_node can return None (#14833)
1 parent 725a900 commit 9f7ddd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/docutils/docutils/nodes.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Node:
8989
@overload
9090
def next_node(
9191
self, condition: type[_N], include_self: bool = False, descend: bool = True, siblings: bool = False, ascend: bool = False
92-
) -> _N: ...
92+
) -> _N | None: ...
9393
@overload
9494
def next_node(
9595
self,
@@ -98,7 +98,7 @@ class Node:
9898
descend: bool = True,
9999
siblings: bool = False,
100100
ascend: bool = False,
101-
) -> Node: ...
101+
) -> Node | None: ...
102102
def validate(self, recursive: bool = True) -> None: ...
103103
def validate_position(self) -> None: ...
104104

0 commit comments

Comments
 (0)