fix(Texthandler): Replace get_all with getall to match the Selector class

This commit is contained in:
Karim shoair
2026-03-17 21:53:17 +02:00
parent 980be18a2a
commit 136c389787
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -112,10 +112,10 @@ class TextHandler(str):
def get(self, default=None): # pragma: no cover
return self
def get_all(self): # pragma: no cover
def getall(self): # pragma: no cover
return self
extract = get_all
extract = getall
extract_first = get
def json(self) -> Dict:
@@ -279,7 +279,7 @@ class TextHandlers(List[TextHandler]):
return self
extract_first = get
get_all = extract
getall = extract
class AttributesHandler(Mapping[str, _TextHandlerType]):
+1 -1
View File
@@ -357,7 +357,7 @@ class TestTextHandlerAdvanced:
"""Test TextHandlers.extract() returns self"""
handlers = TextHandlers([TextHandler("a"), TextHandler("b")])
assert handlers.extract() is handlers
assert handlers.get_all() is handlers
assert handlers.getall() is handlers
class TestSelectorsAdvanced: