diff --git a/stdlib/_ctypes.pyi b/stdlib/_ctypes.pyi index ce9851bbb..495e29dfd 100644 --- a/stdlib/_ctypes.pyi +++ b/stdlib/_ctypes.pyi @@ -44,6 +44,8 @@ if sys.platform == "win32": def FormatError(code: int = ...) -> str: ... def get_last_error() -> int: ... def set_last_error(value: int) -> int: ... + def LoadLibrary(__name: str, __load_flags: int = 0) -> int: ... + def FreeLibrary(__handle: int) -> None: ... class _CDataMeta(type): # By default mypy complains about the following two methods, because strictly speaking cls diff --git a/tests/stubtest_allowlists/win32.txt b/tests/stubtest_allowlists/win32.txt index a1116d364..ef4755017 100644 --- a/tests/stubtest_allowlists/win32.txt +++ b/tests/stubtest_allowlists/win32.txt @@ -10,8 +10,6 @@ _winapi.CreateFileMapping _winapi.MapViewOfFile _winapi.OpenFileMapping _winapi.VirtualQuerySize -_ctypes.FreeLibrary -_ctypes.LoadLibrary # ==========