mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 15:25:49 +08:00
1 parent
e0151e724a
commit
61600d6877
2 files changed
+4
No files matched your search
@@ -795,6 +795,7 @@ class memoryview(Sized, Container[_mv_container_type]):
|
||||
ndim: int
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
obj: Union[bytes, bytearray]
|
||||
c_contiguous: bool
|
||||
f_contiguous: bool
|
||||
contiguous: bool
|
||||
@@ -802,6 +803,7 @@ class memoryview(Sized, Container[_mv_container_type]):
|
||||
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]) -> None: ...
|
||||
def cast(self, format: str, shape: Union[List[int], Tuple[int]] = ...): ...
|
||||
else:
|
||||
def __init__(self, obj: Union[bytes, bytearray, buffer, memoryview]) -> None: ...
|
||||
|
||||
|
||||
@@ -795,6 +795,7 @@ class memoryview(Sized, Container[_mv_container_type]):
|
||||
ndim: int
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
obj: Union[bytes, bytearray]
|
||||
c_contiguous: bool
|
||||
f_contiguous: bool
|
||||
contiguous: bool
|
||||
@@ -802,6 +803,7 @@ class memoryview(Sized, Container[_mv_container_type]):
|
||||
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]) -> None: ...
|
||||
def cast(self, format: str, shape: Union[List[int], Tuple[int]] = ...): ...
|
||||
else:
|
||||
def __init__(self, obj: Union[bytes, bytearray, buffer, memoryview]) -> None: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user