typed SequenceProxy.index

This commit is contained in:
Sengolda 2021-10-28 01:22:11 +05:30 committed by GitHub
parent 19c4a7ebdf
commit de34073b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ class SequenceProxy(Generic[T_co], collections.abc.Sequence):
def __reversed__(self) -> Iterator[T_co]:
return reversed(self.__proxied)
def index(self, value: Any, *args, **kwargs) -> int:
def index(self, value: Any, *args: Any, **kwargs: Any) -> int:
return self.__proxied.index(value, *args, **kwargs)
def count(self, value: Any) -> int: