-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I use the examplel code of the project, but vscode can not list the autocomplete hints.
Env
python: 3.8
vscode:September 2020 (version 1.50)
import asyncio
from playwright import async_playwright
import time
async def main():
async with async_playwright() as p:
browser_type = p.chromium
browser = await browser_type.launch(headless=False, args=['--start-maximized'])
page = await browser.newPage()
await page.goto('http://whatsmyuseragent.org/')
await page.screenshot(path=f'example-{browser_type.name}.png')
await asyncio.sleep(100)
await browser.close()
asyncio.get_event_loop().run_until_complete(main())
And I see the launch method's return type hints is a specific string, is it be supported by vscode?
Metadata
Metadata
Assignees
Labels
No labels