Skip to content

Commit 56a35d9

Browse files
authored
use typing_extensions to be compatible with py37 (#10613)
1 parent dec3bb8 commit 56a35d9

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

py/selenium/webdriver/common/virtual_authenticator.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919

2020
from base64 import urlsafe_b64encode, urlsafe_b64decode
2121
from enum import Enum
22-
from typing import Literal
22+
import typing
23+
import sys
24+
25+
if typing.TYPE_CHECKING:
26+
if sys.version_info >= (3, 8):
27+
from typing import Literal
28+
else:
29+
from typing_extensions import Literal
2330

2431

2532
class Protocol(Enum):

0 commit comments

Comments
 (0)