Commit c0b1582
tox.ini: update version of black formatter tool
Allow tox to use a version of the black tool from 2024. Having added
doc strings to protocols the black tool, using the 2024 style, will no
longer rewrite long-ish protocol method definitions that will span
multiple lines either way from:
def foo(a: str, b: str, c: SomethingCompletelyDifferent) -> int:
...
to
def foo(
a: str, b: str, c: SomethingCompletelyDifferent
) -> int: ...
Just to force the ellipsis to be on the "same line" as the definition.
This is change I find a bit unnecessary and a tad bit ugly. I did
report this to the black team but they chose to make the change anyway.
So they've unintentionally caused me to write more doc strings. Which is
a good thing I guess. :-)
Signed-off-by: John Mulligan <jmulligan@redhat.com>1 parent dda95bb commit c0b1582
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments