]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/tests/data/cases/pep_570.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '882d8795c6ff65c02f2657e596391748d1b6b7f5'
[etc/vim.git] / .vim / bundle / black / tests / data / cases / pep_570.py
1 # flags: --minimum-version=3.8
2 def positional_only_arg(a, /):
3     pass
4
5
6 def all_markers(a, b, /, c, d, *, e, f):
7     pass
8
9
10 def all_markers_with_args_and_kwargs(
11     a_long_one,
12     b_long_one,
13     /,
14     c_long_one,
15     d_long_one,
16     *args,
17     e_long_one,
18     f_long_one,
19     **kwargs,
20 ):
21     pass
22
23
24 def all_markers_with_defaults(a, b=1, /, c=2, d=3, *, e=4, f=5):
25     pass
26
27
28 def long_one_with_long_parameter_names(
29     but_all_of_them,
30     are_positional_only,
31     arguments_mmmmkay,
32     so_this_is_only_valid_after,
33     three_point_eight,
34     /,
35 ):
36     pass
37
38
39 lambda a, /: a
40
41 lambda a, b, /, c, d, *, e, f: a
42
43 lambda a, b, /, c, d, *args, e, f, **kwargs: args
44
45 lambda a, b=1, /, c=2, d=3, *, e=4, f=5: 1