Skip to content

Commit 719c7c7

Browse files
authored
Fix usage of SupportsIndex (#13)
1 parent d300f59 commit 719c7c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import typing
1111

1212
if sys.version_info >= (3, 8):
13-
from typing import Literal
13+
from typing import Literal, SupportsIndex
1414
else:
15-
from typing_extensions import Literal
15+
from typing_extensions import Literal, SupportsIndex
1616

1717

1818
__all__ = (
@@ -245,12 +245,12 @@ class Point(typing.Tuple[float, float]):
245245

246246
def __new__(cls,
247247
x: typing.Union[typing.SupportsFloat,
248-
'builtins._SupportsIndex',
248+
SupportsIndex,
249249
typing.Text,
250250
builtins.bytes,
251251
builtins.bytearray],
252252
y: typing.Union[typing.SupportsFloat,
253-
'builtins._SupportsIndex',
253+
SupportsIndex,
254254
typing.Text,
255255
builtins.bytes,
256256
builtins.bytearray]) -> 'Point':

0 commit comments

Comments
 (0)