Make argtypes in ctypes be a Sequence instead of a Tuple (#2005)

A lot of code uses lists here.
This commit is contained in:
Michael J. Sullivan
2018-03-29 14:55:56 -07:00
committed by GitHub
parent 06aee52581
commit 9b99161ca9

View File

@@ -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: ...