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

9148bd045bc8ade46c801f4b1316c82d29d9b12b
[etc/vim.git] / tests / data / preview / return_annotation_brackets_string.py
1 # Long string example
2 def frobnicate() -> "ThisIsTrulyUnreasonablyExtremelyLongClassName | list[ThisIsTrulyUnreasonablyExtremelyLongClassName]":
3     pass
4
5 # splitting the string breaks if there's any parameters
6 def frobnicate(a) -> "ThisIsTrulyUnreasonablyExtremelyLongClassName | list[ThisIsTrulyUnreasonablyExtremelyLongClassName]":
7     pass
8
9 # output
10
11 # Long string example
12 def frobnicate() -> (
13     "ThisIsTrulyUnreasonablyExtremelyLongClassName |"
14     " list[ThisIsTrulyUnreasonablyExtremelyLongClassName]"
15 ):
16     pass
17
18
19 # splitting the string breaks if there's any parameters
20 def frobnicate(
21     a,
22 ) -> "ThisIsTrulyUnreasonablyExtremelyLongClassName | list[ThisIsTrulyUnreasonablyExtremelyLongClassName]":
23     pass