Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

style(TextHandler): fix re overload

Karim shoair3f23f18473a5
diff --git a/scrapling/core/custom_types.py b/scrapling/core/custom_types.py
index 03257c3..6e4ef50 100644
--- a/scrapling/core/custom_types.py
+++ b/scrapling/core/custom_types.py
@@ -131,10 +131,10 @@ class TextHandler(str):
def re(
self,
regex: Union[str, Pattern[str]],
+ check_match: Literal[True],
replace_entities: bool = True,
clean_match: bool = False,
case_sensitive: bool = False,
- check_match: Literal[True] = True,
) -> bool:
...