Skip to content

Commit

Permalink
Add some tests for keyword-only as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Jan 5, 2023
1 parent 05c4286 commit b6af9c1
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions testsuite/python3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,55 @@ def f(
x: str = ...
):
...
#: E203
def f(
x=4 / 2, y=(1, 4 / 2), *
, arg
):
...
#: E203 W504:4:14
def f(
x=4 * 2,
y=(
1, 4 *
2
),
*
, arg
):
...
#: E203 W504:2:9
def f(
x=4 *
2,
y=(1, 4 * 2),
*
, arg
):
...
#: E203
def f(
x=4 * 2, y=(1, 4 * 2), *
, arg
):
...
#: E203 W503:5:9
def f(
x=4 * 2,
y=(
1, 4
* 2
),
*
, arg
):
...
#: E203 W503:3:5
def f(
x=4
* 2,
y=(1, 4 * 2),
*
, arg
):
...

0 comments on commit b6af9c1

Please sign in to comment.