Rayrun
← Back to Discord Forum

Is there any way of importing playwright's type hints in Python?

I'm literally doing the same that is shown in the sync example (https://playwright.dev/python/docs/api/class-playwright), passing the playwright context to a function that runs it, but inside my run function, playwright is Unknown, so chromium, browser, and everythin after is left as Any. Is there a way of solving this for better type hinting support? Thanks in advance!

This thread is trying to answer question "Is there a way to import playwright's type hints in Python for better type hinting support?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].