Skip to content

Commit

Permalink
style(parser): more accurate type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
D4Vinci committed Dec 21, 2024
1 parent ee59914 commit 3cca3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapling/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def xpath_first(self, selector: str, identifier: str = '',

def css(self, selector: str, identifier: str = '',
auto_match: bool = False, auto_save: bool = False, percentage: int = 0
) -> Union['Adaptors[Adaptor]', List]:
) -> Union['Adaptors[Adaptor]', List, 'TextHandlers[TextHandler]']:
"""Search current tree with CSS3 selectors
**Important:
Expand Down Expand Up @@ -517,7 +517,7 @@ def css(self, selector: str, identifier: str = '',

def xpath(self, selector: str, identifier: str = '',
auto_match: bool = False, auto_save: bool = False, percentage: int = 0, **kwargs: Any
) -> Union['Adaptors[Adaptor]', List]:
) -> Union['Adaptors[Adaptor]', List, 'TextHandlers[TextHandler]']:
"""Search current tree with XPath selectors
**Important:
Expand Down

0 comments on commit 3cca3fd

Please sign in to comment.