Skip to content

Commit

Permalink
fix type problems from mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygoy committed Feb 7, 2024
1 parent d2d864d commit 53b4711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions screenpy_playwright/abilities/browse_the_web_synchronously.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from playwright.sync_api import Browser, Playwright, sync_playwright
from playwright.sync_api import Browser, Page, Playwright, sync_playwright


class BrowseTheWebSynchronously:
Expand All @@ -21,7 +21,8 @@ class BrowseTheWebSynchronously:
)
"""

pages: list[type]
current_page: Page | None
pages: list[Page]

@staticmethod
def using(playwright: Playwright, browser: Browser) -> BrowseTheWebSynchronously:
Expand Down
2 changes: 1 addition & 1 deletion screenpy_playwright/questions/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def describe(self) -> str:
return f"The text from the {self.target}."

@beat("{} examines the text of the {target}.")
def answered_by(self, the_actor: Actor) -> str:
def answered_by(self, the_actor: Actor) -> str | None:
"""Direct the Actor to read the text from the target.
Returns:
Expand Down

0 comments on commit 53b4711

Please sign in to comment.