We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
testTrailingCommaParsing
1 parent 0c0f071 commit a50c9ffCopy full SHA for a50c9ff
test-data/unit/check-basic.test
@@ -300,12 +300,15 @@ main:4: error: Argument 1 to "f" of "A" has incompatible type "str"; expected "i
300
main:5: error: Incompatible return value type (got "int", expected "str")
301
main:6: error: Argument 1 to "f" of "A" has incompatible type "str"; expected "int"
302
303
-[case testTrailingCommaParsing-skip]
+[case testTrailingCommaParsing]
304
x = 1
305
-x in 1,
306
-if x in 1, :
307
- pass
+x in 1, # E: Unsupported right operand type for in ("int")
+[builtins fixtures/tuple.pyi]
+
308
+[case testTrailingCommaInIfParsing]
309
+if x in 1, : pass
310
[out]
311
+main:1: error: invalid syntax
312
313
[case testInitReturnTypeError]
314
class C:
0 commit comments