]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/tests/data/cases/type_params.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 / type_params.py
1 # flags: --minimum-version=3.12
2 def func  [T ](): pass
3 async def func [ T ] (): pass
4 class C[ T ] : pass
5
6 def all_in[T   :   int,U : (bytes, str),*   Ts,**P](): pass
7
8 def really_long[WhatIsTheLongestTypeVarNameYouCanThinkOfEnoughToMakeBlackSplitThisLine](): pass
9
10 def even_longer[WhatIsTheLongestTypeVarNameYouCanThinkOfEnoughToMakeBlackSplitThisLine: WhatIfItHadABound](): pass
11
12 def it_gets_worse[WhatIsTheLongestTypeVarNameYouCanThinkOfEnoughToMakeBlackSplitThisLine, ItCouldBeGenericOverMultipleTypeVars](): pass
13
14 def magic[Trailing, Comma,](): pass
15
16 # output
17
18
19 def func[T]():
20     pass
21
22
23 async def func[T]():
24     pass
25
26
27 class C[T]:
28     pass
29
30
31 def all_in[T: int, U: (bytes, str), *Ts, **P]():
32     pass
33
34
35 def really_long[
36     WhatIsTheLongestTypeVarNameYouCanThinkOfEnoughToMakeBlackSplitThisLine
37 ]():
38     pass
39
40
41 def even_longer[
42     WhatIsTheLongestTypeVarNameYouCanThinkOfEnoughToMakeBlackSplitThisLine: WhatIfItHadABound
43 ]():
44     pass
45
46
47 def it_gets_worse[
48     WhatIsTheLongestTypeVarNameYouCanThinkOfEnoughToMakeBlackSplitThisLine,
49     ItCouldBeGenericOverMultipleTypeVars,
50 ]():
51     pass
52
53
54 def magic[
55     Trailing,
56     Comma,
57 ]():
58     pass