refactor(Playwright Engine): Separate what we can for cleaner code and the async function later

The caching will give a slight performance increase with bulk requests
This commit is contained in:
Karim shoair
2024-12-15 23:25:02 +02:00
parent 6c17bd886e
commit 889c111855
3 changed files with 80 additions and 73 deletions
+5
View File
@@ -302,3 +302,8 @@ def check_type_validity(variable: Any, valid_types: Union[List[Type], None], def
def do_nothing(page):
# Just works as a filler for `page_action` argument in browser engines
return page
async def do_nothing_async(page):
# Just works as a filler for `page_action` argument in browser engines
return page