]> git.madduck.net Git - etc/vim.git/blob - tests/data/miscellaneous/nested_stub.pyi

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:

Try newer clang in diff-shades job (#3904)
[etc/vim.git] / tests / data / miscellaneous / nested_stub.pyi
1 import sys
2
3 class Outer:
4     class InnerStub: ...
5     outer_attr_after_inner_stub: int
6     class Inner:
7         inner_attr: int
8     outer_attr: int
9
10 if sys.version_info > (3, 7):
11     if sys.platform == "win32":
12         assignment = 1
13         def function_definition(self): ...
14     def f1(self) -> str: ...
15     if sys.platform != "win32":
16         def function_definition(self): ...
17         assignment = 1
18     def f2(self) -> str: ...
19
20 # output
21
22 import sys
23
24 class Outer:
25     class InnerStub: ...
26     outer_attr_after_inner_stub: int
27
28     class Inner:
29         inner_attr: int
30
31     outer_attr: int
32
33 if sys.version_info > (3, 7):
34     if sys.platform == "win32":
35         assignment = 1
36         def function_definition(self): ...
37
38     def f1(self) -> str: ...
39     if sys.platform != "win32":
40         def function_definition(self): ...
41         assignment = 1
42
43     def f2(self) -> str: ...