From 9b99161ca9eda85ebe57cda86650d911ccea327e Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Thu, 29 Mar 2018 14:55:56 -0700 Subject: [PATCH] Make argtypes in ctypes be a Sequence instead of a Tuple (#2005) A lot of code uses lists here. --- stdlib/2and3/ctypes/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/ctypes/__init__.pyi b/stdlib/2and3/ctypes/__init__.pyi index 52dda5228..c0edd28a8 100644 --- a/stdlib/2and3/ctypes/__init__.pyi +++ b/stdlib/2and3/ctypes/__init__.pyi @@ -79,7 +79,7 @@ _PF = _UnionT[ ] class _FuncPointer(_PointerLike, _CData): restype: _UnionT[Type[_CData], Callable[[int], None], None] = ... - argtypes: Tuple[Type[_CData], ...] = ... + argtypes: Sequence[Type[_CData]] = ... errcheck: _ECT = ... @overload def __init__(self, address: int) -> None: ...