Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
custompointofview committed Mar 14, 2024
1 parent dd57a8c commit ef9f853
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ class ContextNotAvailable(Exception):
class LocatorNotProvidedException(Exception):
"""Locator not provided."""


class NoWindowSelected(Exception):
"""Window not selected yet."""
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def _collect_node_ancestry(self, node: ContextNode) -> List[ContextNode]:
ancestry.append(node)
return ancestry

def collect_node_ancestry(self, locator: str, search_depth: int = 200) -> List[ContextNode]:
def collect_node_ancestry(
self, locator: str, search_depth: int = 200
) -> List[ContextNode]:
node = self._collect_node(locator=locator, search_depth=search_depth)
return self._collect_node_ancestry(node) if node else []

Expand Down

0 comments on commit ef9f853

Please sign in to comment.