Skip to content

Commit 11cb245

Browse files
committed
still have to support 3.9 unions
1 parent 75c1761 commit 11cb245

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

screenpy_selenium/target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from __future__ import annotations
1010

11-
from typing import TYPE_CHECKING
11+
from typing import TYPE_CHECKING, Union
1212

1313
from selenium.common.exceptions import WebDriverException
1414
from selenium.webdriver.common.by import By
@@ -23,7 +23,7 @@
2323
from selenium.webdriver.remote.webdriver import WebDriver, WebElement
2424
from typing_extensions import Self
2525

26-
WebDriverOrWebElement = WebDriver | WebElement
26+
WebDriverOrWebElement = Union[WebDriver, WebElement]
2727

2828

2929
class Target:

0 commit comments

Comments
 (0)