Skip to content

Commit 68a832b

Browse files
committed
Disable none filtering on send_no_reply()
1 parent 07834ba commit 68a832b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

playwright/_impl/_connection.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ def send_no_reply(
9898
# No reply messages are used to e.g. waitForEventInfo(after).
9999
self._connection.wrap_api_call_sync(
100100
lambda: self._connection._send_message_to_server(
101-
self._object, method, _augment_params(params, timeout_calculator), True
101+
self._object,
102+
method,
103+
_augment_params(params, timeout_calculator, filter=False),
104+
True,
102105
),
103106
is_internal,
104107
title,
@@ -645,12 +648,13 @@ def _extract_stack_trace_information_from_stack(
645648
def _augment_params(
646649
params: Optional[Dict],
647650
timeout_calculator: Optional[Callable[[Optional[float]], float]],
651+
filter: bool = True,
648652
) -> Dict:
649653
if params is None:
650654
params = {}
651655
if timeout_calculator:
652656
params["timeout"] = timeout_calculator(params.get("timeout"))
653-
return _filter_none(params)
657+
return _filter_none(params) if filter else params
654658

655659

656660
def _filter_none(d: Mapping) -> Dict:

0 commit comments

Comments
 (0)