mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add the memoryview.release method (#3405)
This commit is contained in:
committed by
Sebastian Rittau
parent
bf944dbf94
commit
124111534a
@@ -822,6 +822,9 @@ class memoryview(Sized, Container[_mv_container_type]):
|
||||
def tobytes(self) -> bytes: ...
|
||||
def tolist(self) -> List[int]: ...
|
||||
|
||||
if sys.version_info >= (3, 2):
|
||||
def release(self) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def hex(self) -> str: ...
|
||||
|
||||
|
||||
@@ -822,6 +822,9 @@ class memoryview(Sized, Container[_mv_container_type]):
|
||||
def tobytes(self) -> bytes: ...
|
||||
def tolist(self) -> List[int]: ...
|
||||
|
||||
if sys.version_info >= (3, 2):
|
||||
def release(self) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def hex(self) -> str: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user