File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- from collections .abc import Callable , Sequence
1
+ from collections .abc import Callable
2
2
3
3
# Mypy has special handling for functools.cached_property, reuse typeshed's definition instead of defining our own
4
4
from functools import cached_property as cached_property
@@ -20,10 +20,9 @@ class Promise:
20
20
def __radd__ (self , other : Any ) -> Any : ...
21
21
def __deepcopy__ (self , memo : Any ) -> Self : ...
22
22
23
- class _StrPromise (Promise , Sequence [ str ] ):
23
+ class _StrPromise (Promise ):
24
24
def __add__ (self , __s : str ) -> str : ...
25
- # Incompatible with Sequence.__contains__
26
- def __contains__ (self , __o : str ) -> bool : ... # type: ignore[override]
25
+ def __contains__ (self , __o : str ) -> bool : ...
27
26
def __ge__ (self , __x : str ) -> bool : ...
28
27
def __getitem__ (self , __i : SupportsIndex | slice ) -> str : ...
29
28
def __gt__ (self , __x : str ) -> bool : ...
You can’t perform that action at this time.
0 commit comments