mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Memoryview.cast: shape= can be tuple of any number of ints (#5918)
This commit is contained in:
@@ -642,7 +642,7 @@ class memoryview(Sized, Sequence[int]):
|
||||
def __exit__(
|
||||
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
def cast(self, format: str, shape: list[int] | Tuple[int] = ...) -> memoryview: ...
|
||||
def cast(self, format: str, shape: list[int] | Tuple[int, ...] = ...) -> memoryview: ...
|
||||
@overload
|
||||
def __getitem__(self, i: SupportsIndex) -> int: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user