We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SupportsIndex
1 parent d300f59 commit 719c7c7Copy full SHA for 719c7c7
types.py
@@ -10,9 +10,9 @@
10
import typing
11
12
if sys.version_info >= (3, 8):
13
- from typing import Literal
+ from typing import Literal, SupportsIndex
14
else:
15
- from typing_extensions import Literal
+ from typing_extensions import Literal, SupportsIndex
16
17
18
__all__ = (
@@ -245,12 +245,12 @@ class Point(typing.Tuple[float, float]):
245
246
def __new__(cls,
247
x: typing.Union[typing.SupportsFloat,
248
- 'builtins._SupportsIndex',
+ SupportsIndex,
249
typing.Text,
250
builtins.bytes,
251
builtins.bytearray],
252
y: typing.Union[typing.SupportsFloat,
253
254
255
256
builtins.bytearray]) -> 'Point':
0 commit comments