Skip to content

Commit a2749e3

Browse files
committed
style: streamline target attachment and return statement formatting for improved readability
1 parent a21c8b0 commit a2749e3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pydoll/elements/web_element.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,7 @@ async def _resolve_oopif_by_parent(
903903
is_single_child = len(direct_children) == 1
904904
for child_target in direct_children:
905905
attach_response: AttachToTargetResponse = await browser_handler.execute_command(
906-
TargetCommands.attach_to_target(
907-
target_id=child_target['targetId'], flatten=True
908-
)
906+
TargetCommands.attach_to_target(target_id=child_target['targetId'], flatten=True)
909907
)
910908
attached_session_id = attach_response.get('result', {}).get('sessionId')
911909
if not attached_session_id:
@@ -1075,7 +1073,12 @@ async def _resolve_oopif_if_needed(
10751073
resolved_url or current_document_url,
10761074
)
10771075

1078-
return None, None, current_frame_id or resolved_frame_id, current_document_url or resolved_url
1076+
return (
1077+
None,
1078+
None,
1079+
current_frame_id or resolved_frame_id,
1080+
current_document_url or resolved_url,
1081+
)
10791082

10801083
def _init_iframe_context(
10811084
self,

0 commit comments

Comments
 (0)