From 545a54e17beef12b8e75557a3eacb866510b2ac9 Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Sat, 1 May 2021 19:25:18 +0100 Subject: [PATCH] fix typings of 'argparse.HelpFormatter.add_usage' (#5278) Closes #5277 --- stdlib/argparse.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/argparse.pyi b/stdlib/argparse.pyi index 3dd6e5617..9dceaabd4 100644 --- a/stdlib/argparse.pyi +++ b/stdlib/argparse.pyi @@ -263,7 +263,7 @@ class HelpFormatter: def end_section(self) -> None: ... def add_text(self, text: Optional[Text]) -> None: ... def add_usage( - self, usage: Text, actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] = ... + self, usage: Optional[Text], actions: Iterable[Action], groups: Iterable[_ArgumentGroup], prefix: Optional[Text] = ... ) -> None: ... def add_argument(self, action: Action) -> None: ... def add_arguments(self, actions: Iterable[Action]) -> None: ...