Skip to content

Commit 8b8471d

Browse files
committed
[WIP] Add unexpected keyword argument test
1 parent 3f5d045 commit 8b8471d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test-data/unit/check-ctypes.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ intarr4(*float_values) # E: Array constructor argument 1 of type "builtins.list[
176176
import ctypes
177177
intarr4 = ctypes.c_int * 4
178178

179+
intarr4(1, 2, 3, x=3) # E: Unexpected keyword argument "x" for "Array"
180+
179181
x = {"a": 1, "b": 2}
180182
intarr4(**x) # E: Too many arguments for "Array"
181183

0 commit comments

Comments
 (0)