Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libyang/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def find_path(
self,
path: str,
output: bool = False,
root_node: Optional["libyang.SNode"] = None,
root_node: Optional[SNode] = None,
) -> Iterator[SNode]:
if self.cdata is None:
raise RuntimeError("context already destroyed")
Expand Down Expand Up @@ -404,9 +404,9 @@ def find_path(
def find_jsonpath(
self,
path: str,
root_node: Optional["libyang.SNode"] = None,
root_node: Optional[SNode] = None,
output: bool = False,
) -> Optional["libyang.SNode"]:
) -> Optional[SNode]:
if root_node is not None:
ctx_node = root_node.cdata
else:
Expand Down