File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 5
5
their own internal type-checking purposes.
6
6
"""
7
7
8
- import sys
9
8
from concurrent import futures
10
9
from typing import (
11
- TYPE_CHECKING ,
12
- NoReturn ,
13
10
Optional ,
14
11
Sequence ,
15
12
Tuple ,
@@ -85,13 +82,6 @@ def stop(self) -> Optional[_T_co]: ...
85
82
@property
86
83
def step (self ) -> Optional [_T_co ]: ...
87
84
88
- if sys .version_info < (3 , 10 ) and not TYPE_CHECKING :
89
- # Python 3.9 and below have a bug where any Protocol with a @property
90
- # was always regarded as runtime-checkable.
91
- @classmethod
92
- def __subclasscheck__ (cls , __subclass : type ) -> NoReturn :
93
- raise TypeError ("Slice is not a runtime-checkable protocol" )
94
-
95
85
96
86
def is_slice_of (__obj : object , __typ : Type [_T ]) -> TypeGuard [Slice [_T ]]:
97
87
return (
You can’t perform that action at this time.
0 commit comments