mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Change mmap to use bytes.
This commit is contained in:
@@ -73,8 +73,8 @@ if sys.version_info >= (3,):
|
||||
@overload
|
||||
def __setitem__(self, index: slice, object: bytes) -> None: ...
|
||||
else:
|
||||
class mmap(_mmap, Sequence[str]):
|
||||
def rfind(self, string: str, start: int = ..., stop: int = ...) -> int: ...
|
||||
def __getitem__(self, index: Union[int, slice]) -> str: ...
|
||||
class mmap(_mmap, Sequence[bytes]):
|
||||
def rfind(self, string: bytes, start: int = ..., stop: int = ...) -> int: ...
|
||||
def __getitem__(self, index: Union[int, slice]) -> bytes: ...
|
||||
def __delitem__(self, index: Union[int, slice]) -> None: ...
|
||||
def __setitem__(self, index: Union[int, slice], object: str) -> None: ...
|
||||
def __setitem__(self, index: Union[int, slice], object: bytes) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user