]> 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:

Add W503 to default flake8 ignore list (#894)
[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     return A(
11         very_long_argument_name1=very_long_value_for_the_argument,
12         very_long_argument_name2=very_long_value_for_the_argument,
13         **kwargs,
14     )
15 def g():
16     "Docstring."
17     def inner():
18         pass
19     print("Inner defs should breathe a little.")
20 def h():
21     def inner():
22         pass
23     print("Inner defs should breathe a little.")
24
25 # output
26
27 def f(a, **kwargs) -> A:
28     with cache_dir():
29         if something:
30             result = CliRunner().invoke(
31                 black.main, [str(src1), str(src2), "--diff", "--check"]
32             )
33     return A(
34         very_long_argument_name1=very_long_value_for_the_argument,
35         very_long_argument_name2=very_long_value_for_the_argument,
36         **kwargs,
37     )
38
39
40 def g():
41     "Docstring."
42
43     def inner():
44         pass
45
46     print("Inner defs should breathe a little.")
47
48
49 def h():
50     def inner():
51         pass
52
53     print("Inner defs should breathe a little.")