We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c1761 commit 11cb245Copy full SHA for 11cb245
1 file changed
screenpy_selenium/target.py
@@ -8,7 +8,7 @@
8
9
from __future__ import annotations
10
11
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, Union
12
13
from selenium.common.exceptions import WebDriverException
14
from selenium.webdriver.common.by import By
@@ -23,7 +23,7 @@
23
from selenium.webdriver.remote.webdriver import WebDriver, WebElement
24
from typing_extensions import Self
25
26
- WebDriverOrWebElement = WebDriver | WebElement
+ WebDriverOrWebElement = Union[WebDriver, WebElement]
27
28
29
class Target:
0 commit comments