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.
1 # This has always worked
2 z= Loooooooooooooooooooooooong | Loooooooooooooooooooooooong | Loooooooooooooooooooooooong | Loooooooooooooooooooooooong
4 # "AnnAssign"s now also work
5 z: Loooooooooooooooooooooooong | Loooooooooooooooooooooooong | Loooooooooooooooooooooooong | Loooooooooooooooooooooooong
14 z: Loooooooooooooooooooooooong | Loooooooooooooooooooooooong | Loooooooooooooooooooooooong | Loooooooooooooooooooooooong = 7
22 # In case I go for not enforcing parantheses, this might get improved at the same time
25 == 9999999999999999999999999999999999999999
26 | 9999999999999999999999999999999999999999
27 | 9999999999999999999999999999999999999999
28 | 9999999999999999999999999999999999999999,
30 == 9999999999999999999999999999999999999999
31 + 9999999999999999999999999999999999999999
32 + 9999999999999999999999999999999999999999
33 + 9999999999999999999999999999999999999999,
37 z == (9999999999999999999999999999999999999999
38 | 9999999999999999999999999999999999999999
39 | 9999999999999999999999999999999999999999
40 | 9999999999999999999999999999999999999999),
41 y == (9999999999999999999999999999999999999999
42 + 9999999999999999999999999999999999999999
43 + 9999999999999999999999999999999999999999
44 + 9999999999999999999999999999999999999999),
47 # handle formatting of "tname"s in parameter list
49 # remove unnecessary paren
50 def foo(i: (int)) -> None: ...
53 # this is a syntax error in the type annotation according to mypy, but it's not invalid *python* code, so make sure we don't mess with it and make it so.
54 def foo(i: (int,)) -> None: ...
58 x: Loooooooooooooooooooooooong
59 | Looooooooooooooooong
60 | Looooooooooooooooooooong
71 | None = Query(None, title="Some long title", description="Some long description")
79 None, help="Maximum number of jobs to launch. And some additional text."
81 another_option: bool = False
87 # This has always worked
89 Loooooooooooooooooooooooong
90 | Loooooooooooooooooooooooong
91 | Loooooooooooooooooooooooong
92 | Loooooooooooooooooooooooong
95 # "AnnAssign"s now also work
97 Loooooooooooooooooooooooong
98 | Loooooooooooooooooooooooong
99 | Loooooooooooooooooooooooong
100 | Loooooooooooooooooooooooong
102 z: Short | Short2 | Short3 | Short4
108 Loooooooooooooooooooooooong
109 | Loooooooooooooooooooooooong
110 | Loooooooooooooooooooooooong
111 | Loooooooooooooooooooooooong
113 z: Short | Short2 | Short3 | Short4 = 8
117 # In case I go for not enforcing parantheses, this might get improved at the same time
120 == 9999999999999999999999999999999999999999
121 | 9999999999999999999999999999999999999999
122 | 9999999999999999999999999999999999999999
123 | 9999999999999999999999999999999999999999,
125 == 9999999999999999999999999999999999999999
126 + 9999999999999999999999999999999999999999
127 + 9999999999999999999999999999999999999999
128 + 9999999999999999999999999999999999999999,
134 9999999999999999999999999999999999999999
135 | 9999999999999999999999999999999999999999
136 | 9999999999999999999999999999999999999999
137 | 9999999999999999999999999999999999999999
141 9999999999999999999999999999999999999999
142 + 9999999999999999999999999999999999999999
143 + 9999999999999999999999999999999999999999
144 + 9999999999999999999999999999999999999999
148 # handle formatting of "tname"s in parameter list
151 # remove unnecessary paren
152 def foo(i: int) -> None: ...
155 # this is a syntax error in the type annotation according to mypy, but it's not invalid *python* code, so make sure we don't mess with it and make it so.
156 def foo(i: (int,)) -> None: ...
162 Loooooooooooooooooooooooong
163 | Looooooooooooooooong
164 | Looooooooooooooooooooong
175 q: str | None = Query(
176 None, title="Some long title", description="Some long description"
183 max_jobs: int | None = Option(
184 None, help="Maximum number of jobs to launch. And some additional text."
186 another_option: bool = False,