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

Class new line between docstrings / vars / methods (#219)
[etc/vim.git] / tests / class_methods_new_line.py
1 class ClassSimplest:
2     pass
3 class ClassWithInit:
4     def __init__(self):
5         pass
6 class ClassWithInitAndVars:
7     cls_var = 100
8     def __init__(self):
9         pass
10 class ClassWithInitAndVarsAndDocstring:
11     """Test class"""
12     cls_var = 100
13     def __init__(self):
14         pass
15
16
17 # output
18
19
20 class ClassSimplest:
21     pass
22
23
24 class ClassWithInit:
25     def __init__(self):
26         pass
27
28
29 class ClassWithInitAndVars:
30     cls_var = 100
31
32     def __init__(self):
33         pass
34
35
36 class ClassWithInitAndVarsAndDocstring:
37     """Test class"""
38
39     cls_var = 100
40
41     def __init__(self):
42         pass