miyakogi / pyppeteer

Headless chrome/chromium automation library (unofficial port of puppeteer)
Other
3.56k stars 372 forks source link

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

Open grammy-jiang opened 4 years ago

grammy-jiang commented 4 years ago

This PR try to fix the typing hint for the return of Page.cookies().

From the docstring it is said:

If no URLs are specified, this method returns cookies for the current page URL. If URLs are specified, only cookies for those URLs are returned.

Returned cookies are list of dictionaries which contain these fields: ...

And also I have tested this method, the result shows the return is a list of dictionaries.