Skip to content

Commit 447dd51

Browse files
committed
refactor: change body type from dict to string in fetch command parameters
1 parent 17916f8 commit 447dd51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pydoll/commands/fetch_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def fulfill_request( # noqa: PLR0913, PLR0917
200200
request_id: str,
201201
response_code: int,
202202
response_headers: Optional[list[HeaderEntry]] = None,
203-
body: Optional[dict] = None,
203+
body: Optional[str] = None,
204204
response_phrase: Optional[str] = None,
205205
) -> Command[Response]:
206206
"""

pydoll/protocol/fetch/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FulfillRequestParams(CommandParams):
3939
requestId: str
4040
responseCode: int
4141
responseHeaders: NotRequired[list[HeaderEntry]]
42-
body: NotRequired[dict]
42+
body: NotRequired[str]
4343
responsePhrase: NotRequired[str]
4444

4545

0 commit comments

Comments
 (0)