Skip to content

Commit 9d7beb0

Browse files
committed
add a conditional branch for Windows only
1 parent 03e3955 commit 9d7beb0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/_ctypes.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ class CFuncPtr(_PointerLike, _CData):
107107
def __init__(self, callable: Callable[..., Any]) -> None: ...
108108
@overload
109109
def __init__(self, func_spec: tuple[str | int, CDLL], paramflags: tuple[_PF, ...] = ...) -> None: ...
110-
@overload
111-
def __init__(self, vtlb_index: int, name: str, paramflags: tuple[_PF, ...] = ..., iid: _Pointer[c_int] = ...) -> None: ...
110+
if sys.platform == "win32":
111+
@overload
112+
def __init__(self, vtlb_index: int, name: str, paramflags: tuple[_PF, ...] = ..., iid: _Pointer[c_int] = ...) -> None: ...
113+
112114
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
113115

114116
class _CField:

0 commit comments

Comments
 (0)