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

Install primer.json (used by black-primer by default) with black (#2154)
[etc/vim.git] / tests / data / function2.py
1 def f(
2   a,
3   **kwargs,
4 ) -> A:
5     with cache_dir():
6         if something:
7             result = (
8                 CliRunner().invoke(black.main, [str(src1), str(src2), "--diff", "--check"])
9             )
10     limited.append(-limited.pop())  # negate top
11     return A(
12         very_long_argument_name1=very_long_value_for_the_argument,
13         very_long_argument_name2=-very.long.value.for_the_argument,
14         **kwargs,
15     )
16 def g():
17     "Docstring."
18     def inner():
19         pass
20     print("Inner defs should breathe a little.")
21 def h():
22     def inner():
23         pass
24     print("Inner defs should breathe a little.")
25
26 # output
27
28 def f(
29     a,
30     **kwargs,
31 ) -> A:
32     with cache_dir():
33         if something:
34             result = CliRunner().invoke(
35                 black.main, [str(src1), str(src2), "--diff", "--check"]
36             )
37     limited.append(-limited.pop())  # negate top
38     return A(
39         very_long_argument_name1=very_long_value_for_the_argument,
40         very_long_argument_name2=-very.long.value.for_the_argument,
41         **kwargs,
42     )
43
44
45 def g():
46     "Docstring."
47
48     def inner():
49         pass
50
51     print("Inner defs should breathe a little.")
52
53
54 def h():
55     def inner():
56         pass
57
58     print("Inner defs should breathe a little.")