Support *contiguous attributes of memoryview. (#2755)

This commit is contained in:
Aymeric Augustin
2019-02-09 16:05:00 +01:00
committed by Sebastian Rittau
parent e0e83a2dcc
commit f0c5ac04b0
2 changed files with 6 additions and 0 deletions

View File

@@ -771,6 +771,9 @@ class memoryview(Sized, Container[_mv_container_type]):
ndim: int
if sys.version_info >= (3,):
c_contiguous: bool
f_contiguous: bool
contiguous: bool
def __init__(self, obj: Union[bytes, bytearray, memoryview]) -> None: ...
def __enter__(self) -> memoryview: ...
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]) -> bool: ...