]> git.madduck.net Git - etc/vim.git/blob - tests/data/py_38/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:

Set Docker to use 3.11 for now (#3927)
[etc/vim.git] / tests / data / py_38 / pep_570.py
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