Skip to content

Commit 2ddd91e

Browse files
committed
fix: outdated import from typing_extensions
1 parent 152fd06 commit 2ddd91e

5 files changed

Lines changed: 5 additions & 12 deletions

File tree

conflux_web3/_utils/method_formatters.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
Dict,
55
Union,
66
Type,
7-
get_type_hints
8-
)
9-
from typing_extensions import (
7+
get_type_hints,
108
TypedDict,
119
)
1210
from hexbytes import HexBytes

conflux_web3/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Any,
44
Callable,
55
List,
6+
Literal,
67
Optional,
78
Sequence,
89
Tuple,
@@ -13,7 +14,6 @@
1314
overload
1415
)
1516
from typing_extensions import (
16-
Literal,
1717
Unpack,
1818
)
1919
import warnings

conflux_web3/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
Dict,
1010
Callable,
1111
Protocol,
12-
)
13-
from typing_extensions import (
1412
Literal,
1513
TypedDict,
1614
)

tests/_test_helpers/type_check.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
Type,
55
Union,
66
cast,
7-
)
8-
import typing
9-
import sys
10-
from typing_extensions import (
117
Literal,
128
TypedDict,
139
get_args,
1410
get_origin,
11+
)
12+
import sys
13+
from typing_extensions import (
1514
is_typeddict,
1615
)
1716
import collections.abc

tests/utils/test_test_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
List,
33
Union,
44
Sequence,
5-
)
6-
from typing_extensions import (
75
TypedDict,
86
)
97
from tests._test_helpers.type_check import (

0 commit comments

Comments
 (0)