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
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?"
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 firstname.lastname@example.org.