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

Show badge for stable docs, not latest
[etc/vim.git] / tests / class_blank_parentheses.py
1 class SimpleClassWithBlankParentheses():
2     pass
3 class ClassWithSpaceParentheses ( ):
4     first_test_data = 90
5     second_test_data = 100
6     def test_func(self):
7         return None
8 class ClassWithEmptyFunc(object):
9
10     def func_with_blank_parentheses():
11         return 5
12
13
14 def public_func_with_blank_parentheses():
15     return None
16 def class_under_the_func_with_blank_parentheses():
17     class InsideFunc():
18         pass
19 class NormalClass (
20 ):
21     def func_for_testing(self, first, second):
22         sum = first + second
23         return sum
24
25
26 # output
27
28
29 class SimpleClassWithBlankParentheses:
30     pass
31
32
33 class ClassWithSpaceParentheses:
34     first_test_data = 90
35     second_test_data = 100
36
37     def test_func(self):
38         return None
39
40
41 class ClassWithEmptyFunc(object):
42
43     def func_with_blank_parentheses():
44         return 5
45
46
47 def public_func_with_blank_parentheses():
48     return None
49
50
51 def class_under_the_func_with_blank_parentheses():
52
53     class InsideFunc:
54         pass
55
56
57 class NormalClass:
58
59     def func_for_testing(self, first, second):
60         sum = first + second
61         return sum