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

Merge commit '882d8795c6ff65c02f2657e596391748d1b6b7f5'
[etc/vim.git] / .vim / bundle / black / tests / data / cases / preview_long_strings__type_annotations.py
1 # flags: --preview
2 def func(
3     arg1,
4     arg2,
5 ) -> Set["this_is_a_very_long_module_name.AndAVeryLongClasName"
6          ".WithAVeryVeryVeryVeryVeryLongSubClassName"]:
7   pass
8
9
10 def func(
11     argument: (
12         "VeryLongClassNameWithAwkwardGenericSubtype[int] |"
13         "VeryLongClassNameWithAwkwardGenericSubtype[str]"
14     ),
15 ) -> (
16     "VeryLongClassNameWithAwkwardGenericSubtype[int] |"
17     "VeryLongClassNameWithAwkwardGenericSubtype[str]"
18 ):
19   pass
20
21
22 def func(
23     argument: (
24         "int |"
25         "str"
26     ),
27 ) -> Set["int |"
28          " str"]:
29   pass
30
31
32 # output
33
34
35 def func(
36     arg1,
37     arg2,
38 ) -> Set[
39     "this_is_a_very_long_module_name.AndAVeryLongClasName"
40     ".WithAVeryVeryVeryVeryVeryLongSubClassName"
41 ]:
42     pass
43
44
45 def func(
46     argument: (
47         "VeryLongClassNameWithAwkwardGenericSubtype[int] |"
48         "VeryLongClassNameWithAwkwardGenericSubtype[str]"
49     ),
50 ) -> (
51     "VeryLongClassNameWithAwkwardGenericSubtype[int] |"
52     "VeryLongClassNameWithAwkwardGenericSubtype[str]"
53 ):
54     pass
55
56
57 def func(
58     argument: "int |" "str",
59 ) -> Set["int |" " str"]:
60     pass