Skip to content

Commit 385b9c8

Browse files
jdb8JelleZijlstra
authored andcommitted
Fix optparse OptionGroup __init__ to allow missing description (#1248)
1 parent 0e21ac9 commit 385b9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/2and3/optparse.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class OptionGroup(OptionContainer):
152152
option_list = ... # type: List[Option]
153153
parser = ... # type: OptionParser
154154
title = ... # type: _Text
155-
def __init__(self, parser: OptionParser, title: _Text, description: Optional[_Text]) -> None: ...
155+
def __init__(self, parser: OptionParser, title: _Text, description: Optional[_Text] = ...) -> None: ...
156156
def _create_option_list(self) -> None: ...
157157
def set_title(self, title: _Text) -> None: ...
158158

0 commit comments

Comments
 (0)