Skip to content

Commit 62144b0

Browse files
committed
Add some tests for keyword-only as well
1 parent 7a762ad commit 62144b0

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

testsuite/python3.py

+52
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,55 @@ def f(
4646
x: str = ...
4747
):
4848
...
49+
#: E203
50+
def f(
51+
x=4 / 2, y=(1, 4 / 2), *
52+
, arg
53+
):
54+
...
55+
#: E203 W504:4:14
56+
def f(
57+
x=4 * 2,
58+
y=(
59+
1, 4 *
60+
2
61+
),
62+
*
63+
, arg
64+
):
65+
...
66+
#: E203 W504:2:9
67+
def f(
68+
x=4 *
69+
2,
70+
y=(1, 4 * 2),
71+
*
72+
, arg
73+
):
74+
...
75+
#: E203
76+
def f(
77+
x=4 * 2, y=(1, 4 * 2), *
78+
, arg
79+
):
80+
...
81+
#: E203 W503:5:9
82+
def f(
83+
x=4 * 2,
84+
y=(
85+
1, 4
86+
* 2
87+
),
88+
*
89+
, arg
90+
):
91+
...
92+
#: E203 W503:3:5
93+
def f(
94+
x=4
95+
* 2,
96+
y=(1, 4 * 2),
97+
*
98+
, arg
99+
):
100+
...

0 commit comments

Comments
 (0)