@@ -51,7 +51,7 @@ class _AttributeHolder:
51
51
class _ActionsContainer :
52
52
description : Optional [_Text ]
53
53
prefix_chars : _Text
54
- argument_default : Optional [ _Text ]
54
+ argument_default : Any
55
55
conflict_handler : _Text
56
56
57
57
_registries : Dict [_Text , Dict [Any , Any ]]
@@ -63,7 +63,7 @@ class _ActionsContainer:
63
63
_negative_number_matcher : Pattern [str ]
64
64
_has_negative_number_optionals : List [bool ]
65
65
def __init__ (
66
- self , description : Optional [Text ], prefix_chars : Text , argument_default : Optional [ Text ] , conflict_handler : Text
66
+ self , description : Optional [Text ], prefix_chars : Text , argument_default : Any , conflict_handler : Text
67
67
) -> None : ...
68
68
def register (self , registry_name : Text , value : Any , object : Any ) -> None : ...
69
69
def _registry_get (self , registry_name : Text , value : Any , default : Any = ...) -> Any : ...
@@ -128,7 +128,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
128
128
formatter_class : _FormatterClass = ...,
129
129
prefix_chars : str = ...,
130
130
fromfile_prefix_chars : Optional [str ] = ...,
131
- argument_default : Optional [ str ] = ...,
131
+ argument_default : Any = ...,
132
132
conflict_handler : str = ...,
133
133
add_help : bool = ...,
134
134
allow_abbrev : bool = ...,
@@ -145,7 +145,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
145
145
formatter_class : _FormatterClass = ...,
146
146
prefix_chars : str = ...,
147
147
fromfile_prefix_chars : Optional [str ] = ...,
148
- argument_default : Optional [ str ] = ...,
148
+ argument_default : Any = ...,
149
149
conflict_handler : str = ...,
150
150
add_help : bool = ...,
151
151
allow_abbrev : bool = ...,
@@ -161,7 +161,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer):
161
161
formatter_class : _FormatterClass = ...,
162
162
prefix_chars : Text = ...,
163
163
fromfile_prefix_chars : Optional [Text ] = ...,
164
- argument_default : Optional [ Text ] = ...,
164
+ argument_default : Any = ...,
165
165
conflict_handler : Text = ...,
166
166
add_help : bool = ...,
167
167
) -> None : ...
0 commit comments