Skip to content

Commit 131d615

Browse files
authored
[_ctypes] Add dllist() (#16143)
1 parent 7a6ee95 commit 131d615

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

stdlib/_ctypes.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,7 @@ def Py_INCREF(o: _T, /) -> _T: ...
373373
def buffer_info(o: _CData | _CDataType | type[_CData | _CDataType], /) -> tuple[str, int, tuple[int, ...]]: ...
374374
def call_cdeclfunction(address: int, arguments: tuple[Any, ...], /) -> Any: ...
375375
def call_function(address: int, arguments: tuple[Any, ...], /) -> Any: ...
376+
377+
# dllist() is available on Linux and other platforms like NetBSD
378+
if sys.version_info >= (3, 15) and sys.platform != "win32" and sys.platform != "darwin":
379+
def dllist() -> list[str]: ...

0 commit comments

Comments
 (0)