]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/tests/data/cases/type_aliases.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_aliases.py
1 # flags: --minimum-version=3.12
2
3 type A=int
4 type Gen[T]=list[T]
5 type Alias[T]=lambda: T
6 type And[T]=T and T
7 type IfElse[T]=T if T else T
8 type One = int; type Another = str
9 class X: type InClass = int
10
11 type = aliased
12 print(type(42))
13
14 # output
15
16 type A = int
17 type Gen[T] = list[T]
18 type Alias[T] = lambda: T
19 type And[T] = T and T
20 type IfElse[T] = T if T else T
21 type One = int
22 type Another = str
23
24
25 class X:
26     type InClass = int
27
28
29 type = aliased
30 print(type(42))