Skip to content

Commit 6e8d205

Browse files
committed
config: add a type annotation
1 parent f0d61a6 commit 6e8d205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def _format_action_invocation(self, action: argparse.Action) -> str:
448448
return_list.append(option.replace(" ", "=", 1))
449449
return ", ".join(return_list)
450450

451-
def _split_lines(self, text, width):
451+
def _split_lines(self, text: str, width: int) -> list[str]:
452452
"""Wrap lines after splitting on original newlines.
453453
454454
This allows to have explicit line breaks in the help text.

0 commit comments

Comments
 (0)