Skip to content

Commit eec64ff

Browse files
committed
Fix type hints.
1 parent d73683c commit eec64ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

flake8_dunder_all/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def format_help_text(self, ctx, formatter: click.formatting.HelpFormatter):
5353
"""
5454

5555
formatter.write('\n')
56-
formatter.write(indent(self.help.replace("* ", " "), " "))
56+
formatter.write(indent((self.help or '').replace("* ", " "), " "))
5757
formatter.write('\n')
5858

5959

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@ def test_main_help(capsys, file_regression: FileRegressionFixture):
121121
result: Result = runner.invoke(main, catch_exceptions=False, args=["-h"])
122122
check_file_regression(result.stdout, file_regression)
123123

124-
result: Result = runner.invoke(main, catch_exceptions=False, args=["--help"])
124+
result = runner.invoke(main, catch_exceptions=False, args=["--help"])
125125
check_file_regression(result.stdout, file_regression)

0 commit comments

Comments
 (0)