Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Fix the typing hint for the return of Page.cookies() #282

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyppeteer/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ async def xpath(self, expression: str) -> List[ElementHandle]:
#: alias to :meth:`xpath`
Jx = xpath

async def cookies(self, *urls: str) -> dict:
async def cookies(self, *urls: str) -> List[Dict[str, Union[str, int, bool]]]:
"""Get cookies.

If no URLs are specified, this method returns cookies for the current
Expand Down