From 088117441d7fda0907e4b10b2b78486e8da32dde Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Sun, 24 Nov 2024 13:49:31 +0200 Subject: [PATCH] Making the type hints more accurate before update --- scrapling/engines/pw.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrapling/engines/pw.py b/scrapling/engines/pw.py index 6aa89ec..e49f622 100644 --- a/scrapling/engines/pw.py +++ b/scrapling/engines/pw.py @@ -27,11 +27,11 @@ class PlaywrightEngine: page_action: Callable = do_nothing, wait_selector: Optional[str] = None, wait_selector_state: Optional[str] = 'attached', - stealth: bool = False, - hide_canvas: bool = False, - disable_webgl: bool = False, + stealth: Optional[bool] = False, + hide_canvas: Optional[bool] = False, + disable_webgl: Optional[bool] = False, cdp_url: Optional[str] = None, - nstbrowser_mode: bool = False, + nstbrowser_mode: Optional[bool] = False, nstbrowser_config: Optional[Dict] = None, google_search: Optional[bool] = True, extra_headers: Optional[Dict[str, str]] = None,