From af98a29823d4ae8dc09a52ce4f0db6fc5289b658 Mon Sep 17 00:00:00 2001 From: rchen152 Date: Thu, 4 Jan 2018 16:16:00 -0800 Subject: [PATCH] Add __getslice__ to the Python 2 definition of mmap.mmap (#1812) --- stdlib/2and3/mmap.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/2and3/mmap.pyi b/stdlib/2and3/mmap.pyi index 933723bdb..bf5dafe19 100644 --- a/stdlib/2and3/mmap.pyi +++ b/stdlib/2and3/mmap.pyi @@ -62,5 +62,6 @@ else: class mmap(_mmap, Sequence[bytes]): def rfind(self, string: bytes, start: int = ..., stop: int = ...) -> int: ... def __getitem__(self, index: Union[int, slice]) -> bytes: ... + def __getslice__(self, i: Optional[int], j: Optional[int]) -> bytes: ... def __delitem__(self, index: Union[int, slice]) -> None: ... def __setitem__(self, index: Union[int, slice], object: bytes) -> None: ...