Fix stubtest failures for mmap on windows (#4094)

This commit is contained in:
Rune Tynan
2020-05-27 03:40:06 -04:00
committed by GitHub
parent 5e80ca9e44
commit bd6eed8700

View File

@@ -54,7 +54,7 @@ class _mmap(Generic[AnyStr]):
if sys.version_info >= (3,):
class mmap(_mmap[bytes], ContextManager[mmap], Iterable[bytes], Sized):
closed: bool
if sys.version_info >= (3, 8):
if sys.version_info >= (3, 8) and sys.platform != "win32":
def madvise(self, option: int, start: int = ..., length: int = ...) -> None: ...
def rfind(self, sub: bytes, start: int = ..., stop: int = ...) -> int: ...
@overload