@@ -62,9 +62,11 @@ class HelpFormatter:
62
62
max_help_position : int
63
63
option_strings : dict [Option , str ]
64
64
parser : OptionParser
65
- short_first : Incomplete
65
+ short_first : bool | Literal [ 0 , 1 ]
66
66
width : int
67
- def __init__ (self , indent_increment : int , max_help_position : int , width : int | None , short_first : int ) -> None : ...
67
+ def __init__ (
68
+ self , indent_increment : int , max_help_position : int , width : int | None , short_first : bool | Literal [0 , 1 ]
69
+ ) -> None : ...
68
70
def dedent (self ) -> None : ...
69
71
def expand_default (self , option : Option ) -> str : ...
70
72
def format_description (self , description : str | None ) -> str : ...
@@ -83,14 +85,22 @@ class HelpFormatter:
83
85
84
86
class IndentedHelpFormatter (HelpFormatter ):
85
87
def __init__ (
86
- self , indent_increment : int = 2 , max_help_position : int = 24 , width : int | None = None , short_first : int = 1
88
+ self ,
89
+ indent_increment : int = 2 ,
90
+ max_help_position : int = 24 ,
91
+ width : int | None = None ,
92
+ short_first : bool | Literal [0 , 1 ] = 1 ,
87
93
) -> None : ...
88
94
def format_heading (self , heading : str ) -> str : ...
89
95
def format_usage (self , usage : str ) -> str : ...
90
96
91
97
class TitledHelpFormatter (HelpFormatter ):
92
98
def __init__ (
93
- self , indent_increment : int = 0 , max_help_position : int = 24 , width : int | None = None , short_first : int = 0
99
+ self ,
100
+ indent_increment : int = 0 ,
101
+ max_help_position : int = 24 ,
102
+ width : int | None = None ,
103
+ short_first : bool | Literal [0 , 1 ] = 0 ,
94
104
) -> None : ...
95
105
def format_heading (self , heading : str ) -> str : ...
96
106
def format_usage (self , usage : str ) -> str : ...
0 commit comments