Skip to content

Commit 802de52

Browse files
committed
more test type hints
1 parent a6354f4 commit 802de52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from typing import Any
33

4-
from playwright.async_api._generated import Browser
4+
from playwright.async_api._generated import Browser, Page
55
from reactpy import Ref, component, html, use_location
66
from reactpy.testing import DisplayFixture
77

@@ -293,5 +293,5 @@ def sample():
293293
_link = await display.page.wait_for_selector("#root")
294294
await _link.click(delay=CLICK_DELAY, modifiers=["Control"])
295295
browser_context = browser.contexts[0]
296-
new_page = await browser_context.wait_for_event("page")
296+
new_page: Page = await browser_context.wait_for_event("page")
297297
await new_page.wait_for_selector("#a")

0 commit comments

Comments
 (0)