This commit is contained in:
William Ting 2017-07-05 19:30:03 +00:00 committed by GitHub
commit 2e63227bc1
9 changed files with 450 additions and 3 deletions

View file

@ -0,0 +1,62 @@
# bad
def foo(
a,
b,
c,
*args,
**kwargs
):
pass
# okay
def bar():
pass
# bad
_ = foo(
1,
2,
3,
4,
e=5,
*[],
**{}
)
# okay
_ = bar()
# okay
_ = foo(bar, baz, womp)
# bad
class baz(
object,
object,
):
pass
# okay
class qux:
pass
# bad
_ = foo(
foo(
1 + foo(
1, # trickier
2,
3,
),
4,
5,
),
6,
7,
)
# bad
_ = '(wow)'.foo(
no,
way,
)

View file

@ -0,0 +1,55 @@
# bad
def foo(a,
b,
c,
*args,
**kwargs
):
pass
# okay
def bar():
pass
# bad
_ = foo(1,
2,
3,
4,
e=5,
*[],
**{}
)
# okay
_ = bar()
# okay
_ = foo(bar, baz, womp)
# bad
class baz(object,
object,
):
pass
# okay
class qux:
pass
# bad
_ = foo(foo(1 + foo(1, # trickier
2,
3,
),
4,
5,
),
6,
7,
)
# bad
_ = '(wow)'.foo(no,
way,
)

View file

@ -0,0 +1,61 @@
# bad
def foo(a,
b,
c,
*args,
**kwargs
):
pass
# okay
def bar():
pass
# bad
_ = foo(
1,
2,
3,
4,
e=5,
*[],
**{}
)
# okay
_ = bar()
# okay
_ = foo(bar, baz, womp)
# bad
class baz(
object,
object,
):
pass
# okay
class qux:
pass
# bad
_ = foo(
foo(
1 + foo(
1, # trickier
2,
3,
),
4,
5,
),
6,
7,
)
# bad
_ = '(wow)'.foo(
no,
way,
)

View file

@ -0,0 +1,4 @@
def foo(a,
b,
)
pass