@@ -197,7 +197,7 @@ async def evaluate_handle(
197197 self , expression : str , arg : Serializable = None , timeout : float = None
198198 ) -> "JSHandle" :
199199 return await self ._with_element (
200- lambda h , o : h .evaluate_handle (expression , arg ), timeout
200+ lambda h , _ : h .evaluate_handle (expression , arg ), timeout
201201 )
202202
203203 async def fill (
@@ -518,7 +518,9 @@ async def screenshot(
518518 ) -> bytes :
519519 params = locals_to_params (locals ())
520520 return await self ._with_element (
521- lambda h , timeout : h .screenshot (timeout = timeout , ** params )
521+ lambda h , timeout : h .screenshot (
522+ ** {** params , "timeout" : timeout }, # type: ignore
523+ ),
522524 )
523525
524526 async def scroll_into_view_if_needed (
@@ -550,7 +552,7 @@ async def select_option(
550552 async def select_text (self , force : bool = None , timeout : float = None ) -> None :
551553 params = locals_to_params (locals ())
552554 return await self ._with_element (
553- lambda h , timeout : h .select_text (timeout = timeout , ** params ), timeout
555+ lambda h , timeout : h .select_text (** { ** params , "timeout" : timeout } ), timeout # type: ignore
554556 )
555557
556558 async def set_input_files (
0 commit comments