ctypes.memmove and memset return ints (#7407)

They actually return pointers, but ctypes turns them into ints.

Fixes #7406
This commit is contained in:
Jelle Zijlstra
2022-02-28 18:00:16 -08:00
committed by GitHub
parent 47cccff9cb
commit cf3ea5b6e6

View File

@@ -165,8 +165,8 @@ def get_errno() -> int: ...
if sys.platform == "win32":
def get_last_error() -> int: ...
def memmove(dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> None: ...
def memset(dst: _CVoidPLike, c: int, count: int) -> None: ...
def memmove(dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> int: ...
def memset(dst: _CVoidPLike, c: int, count: int) -> int: ...
def POINTER(type: type[_CT]) -> type[pointer[_CT]]: ...
# The real ctypes.pointer is a function, not a class. The stub version of pointer behaves like