fix(type hints): use correct import for Python < 3.12 (Fixes #163 )
This commit is contained in:
@@ -4,7 +4,6 @@ Type definitions for type checking purposes.
|
|||||||
|
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
TypedDict,
|
|
||||||
TypeAlias,
|
TypeAlias,
|
||||||
cast,
|
cast,
|
||||||
overload,
|
overload,
|
||||||
@@ -32,7 +31,7 @@ from typing import (
|
|||||||
Coroutine,
|
Coroutine,
|
||||||
SupportsIndex,
|
SupportsIndex,
|
||||||
)
|
)
|
||||||
from typing_extensions import Self, Unpack
|
from typing_extensions import Self, Unpack, TypedDict
|
||||||
|
|
||||||
# Proxy can be a string URL or a dict (Playwright format: {"server": "...", "username": "...", "password": "..."})
|
# Proxy can be a string URL or a dict (Playwright format: {"server": "...", "username": "...", "password": "..."})
|
||||||
ProxyType = Union[str, Dict[str, str]]
|
ProxyType = Union[str, Dict[str, str]]
|
||||||
|
|||||||
Reference in New Issue
Block a user