Skip to content

Commit 693bfca

Browse files
committed
Add missing trailing commas.
1 parent 6039a6f commit 693bfca

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

consolekit/input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def choice(
292292
prompt_suffix: str = ...,
293293
show_default: bool = ...,
294294
err: bool = ...,
295-
start_index: int = ...
295+
start_index: int = ...,
296296
) -> int: ...
297297

298298

@@ -304,7 +304,7 @@ def choice(
304304
prompt_suffix: str = ...,
305305
show_default: bool = ...,
306306
err: bool = ...,
307-
start_index: int = ...
307+
start_index: int = ...,
308308
) -> str: ...
309309

310310

@@ -315,7 +315,7 @@ def choice(
315315
prompt_suffix: str = ": ",
316316
show_default: bool = True,
317317
err: bool = False,
318-
start_index: int = 0
318+
start_index: int = 0,
319319
) -> Union[str, int]:
320320
"""
321321
Prompts a user for input.

consolekit/terminal_colours.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def from_rgb(
319319
r: Union[str, int],
320320
g: Union[str, int],
321321
b: Union[str, int],
322-
background: bool = False
322+
background: bool = False,
323323
) -> _C:
324324
"""
325325
Returns a :class:`~.Colour` to create 24-bit coloured text.
@@ -420,13 +420,13 @@ def print_line(values: Iterable[int], block_size: int = 3) -> None:
420420
echo(Colour.from_256_code(code, background=True)(str(code).center(block_size)) + ' ')
421421
click.echo(
422422
Colour.from_256_code(values[-1], background=True)(str(values[-1]).center(block_size).rstrip()),
423-
color=colour
423+
color=colour,
424424
)
425425

426426
print_heading(
427427
"Standard Colours".center((9 * 8) - 1, '-') + ' ' + "High-Intensity Colours".center((9 * 8) - 1, '-'),
428428
block_size=8,
429-
n_blocks=16
429+
n_blocks=16,
430430
)
431431

432432
print_line(range(16), block_size=8)

consolekit/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
deprecated_in="1.0.0",
8181
removed_in="2.0.0",
8282
current_version="1.9.0",
83-
details="Import from consolekit.tracebacks instead."
83+
details="Import from consolekit.tracebacks instead.",
8484
)
8585

8686
handle_tracebacks = _deprecator(tracebacks.handle_tracebacks)
@@ -474,7 +474,7 @@ def render(self, token) -> str: # noqa: MAN001
474474
def long_echo(
475475
text: Union[str, StringList, Iterable[str]],
476476
use_pager: Optional[bool] = None,
477-
colour: ColourTrilean = None
477+
colour: ColourTrilean = None,
478478
) -> None:
479479
"""
480480
Echo ``text`` to the terminal, optionally via a pager.

tests/test_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def fake_input(prompt: str) -> str:
3636
'Y': "install the package maintainer's version",
3737
'N': "keep your currently-installed version",
3838
'D': "show the differences between the versions",
39-
'Z': "start a shell to examine the situation"
39+
'Z': "start a shell to examine the situation",
4040
}
4141
assert choice(text="*** sudoers", options=options, default='N') == 'D'
4242

tests/test_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_get_formatted_versions():
3232
"deprecation-alias": "pkg2",
3333
"domdf-python-tools": "pkg3",
3434
"mistletoe": "pkg4",
35-
"typing-extensions": "pkg5"
35+
"typing-extensions": "pkg5",
3636
})
3737
for line, name in zip(sl, ["pkg1", "pkg2", "pkg3", "pkg4", "pkg5"]):
3838
assert line.startswith(f"{name}:")
@@ -45,7 +45,7 @@ def test_version_callback(cli_runner: CliRunner):
4545
get_version_callback(
4646
"1.2.3",
4747
"my-tool",
48-
["click", "deprecation-alias", "domdf-python-tools", "mistletoe", "typing-extensions"]
48+
["click", "deprecation-alias", "domdf-python-tools", "mistletoe", "typing-extensions"],
4949
)
5050
)
5151
@click_command()

0 commit comments

Comments
 (0)