| 1 |
def positional_only_arg(a, /): |
| 2 |
pass |
| 3 |
|
| 4 |
|
| 5 |
def all_markers(a, b, /, c, d, *, e, f): |
| 6 |
pass |
| 7 |
|
| 8 |
|
| 9 |
def all_markers_with_args_and_kwargs( |
| 10 |
a_long_one, |
| 11 |
b_long_one, |
| 12 |
/, |
| 13 |
c_long_one, |
| 14 |
d_long_one, |
| 15 |
*args, |
| 16 |
e_long_one, |
| 17 |
f_long_one, |
| 18 |
**kwargs, |
| 19 |
): |
| 20 |
pass |
| 21 |
|
| 22 |
|
| 23 |
def all_markers_with_defaults(a, b=1, /, c=2, d=3, *, e=4, f=5): |
| 24 |
pass |
| 25 |
|
| 26 |
|
| 27 |
def long_one_with_long_parameter_names( |
| 28 |
but_all_of_them, |
| 29 |
are_positional_only, |
| 30 |
arguments_mmmmkay, |
| 31 |
so_this_is_only_valid_after, |
| 32 |
three_point_eight, |
| 33 |
/, |
| 34 |
): |
| 35 |
pass |
| 36 |
|
| 37 |
|
| 38 |
lambda a, /: a |
| 39 |
|
| 40 |
lambda a, b, /, c, d, *, e, f: a |
| 41 |
|
| 42 |
lambda a, b, /, c, d, *args, e, f, **kwargs: args |
| 43 |
|
| 44 |
lambda a, b=1, /, c=2, d=3, *, e=4, f=5: 1 |