Skip to content

Commit

Permalink
change typing to make Python3.8 mypy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygoy committed May 22, 2024
1 parent b9c88c7 commit db040c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions screenpy_playwright/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from collections import UserString
from dataclasses import dataclass
from typing import TYPE_CHECKING, Pattern, TypedDict
from typing import TYPE_CHECKING, Pattern, Tuple, TypedDict, Union

from playwright.sync_api import Locator

Expand All @@ -15,7 +15,7 @@
from screenpy import Actor
from typing_extensions import NotRequired, Self, Unpack

_ManipulationArgsType = tuple[str | int | None, ...]
_ManipulationArgsType = Tuple[Union[str, int, None], ...]

class _ManipulationKwargsType(TypedDict):
"""Types for kwargs that are passed to Playwright's locator methods."""
Expand Down

0 comments on commit db040c6

Please sign in to comment.