Skip to content

Commit 50fdc08

Browse files
committed
regression test
1 parent fa01a07 commit 50fdc08

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test-data/unit/check-varargs.test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,19 @@ f(a, *(b, cc))
268268
[builtins fixtures/tuple.pyi]
269269

270270
[case testInvalidVarArg]
271-
# flags: --no-strict-optional
272271
def f(a: 'A') -> None:
273272
pass
274273

275274
class A: pass
276275

277-
a = None # type: A
276+
a = A()
278277

279-
f(*None)
278+
f(*None) # E: List or tuple expected as variadic arguments
280279
f(*a) # E: List or tuple expected as variadic arguments
281280
f(*(a,))
281+
282+
f(*4) # E: List or tuple expected as variadic arguments
283+
f(a, *4)
282284
[builtins fixtures/tuple.pyi]
283285

284286

0 commit comments

Comments
 (0)