Skip to content

Commit

Permalink
Added type hints into utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Misharov committed Jul 21, 2021
1 parent ca9d3b2 commit 8a4e09a
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 74 deletions.
3 changes: 3 additions & 0 deletions src/widgetastic/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import List
from typing import Tuple
from typing import TYPE_CHECKING
from typing import TypeVar
from typing import Union

from selenium.webdriver.remote.webelement import WebElement
Expand Down Expand Up @@ -34,3 +35,5 @@ def __locator__(self) -> Union[str, Locator, WebElement]:
VString = Union[str, "Version", List[Union[int, str]], Tuple[Union[int, str]]]

Handler = Union[str, "ClickableMixin", Callable]

VersionPickedObject = TypeVar("VersionPickedObject")
Loading

0 comments on commit 8a4e09a

Please sign in to comment.