diff --git a/scrapling/parser.py b/scrapling/parser.py index c82a270..1a46f1a 100644 --- a/scrapling/parser.py +++ b/scrapling/parser.py @@ -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: @@ -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: