Skip to content

Commit dffdfb2

Browse files
author
Eugene Prilepin
committed
fix flake8 F541
1 parent 69998cc commit dffdfb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

click_option_group/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def handle_parse_result(self, option: GroupedOption, ctx: click.Context, opts: d
324324
given_option_count = len(given_option_names)
325325

326326
if given_option_count > 1:
327-
error_text = f'The given mutually exclusive options cannot be used at the same time:'
327+
error_text = 'The given mutually exclusive options cannot be used at the same time:'
328328
error_text += f'\n{self.get_error_hint(ctx, given_option_names)}'
329329
raise click.UsageError(error_text, ctx=ctx)
330330

tests/test_click_option_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def cli(hello, foo1, bar1, goodbye):
642642
assert 'foo1,bar1' in result.output
643643

644644
with pytest.raises(
645-
TypeError, match=f"'hidden' attribute is not allowed for 'RequiredAllOptionGroup' option `bar'"):
645+
TypeError, match="'hidden' attribute is not allowed for 'RequiredAllOptionGroup' option `bar'"):
646646
@click.command()
647647
@optgroup(cls=RequiredAllOptionGroup)
648648
@optgroup.option('--foo')

0 commit comments

Comments
 (0)