Skip to content

Commit 82c8474

Browse files
committed
Fixes to argparse stubs (Python 3)
1 parent 4ee94c4 commit 82c8474

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stubs/3.2/argparse.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Stubs for argparse (Python 3.4)
1+
# Stubs for argparse (Python 3)
22
#
33
# NOTE: This dynamically typed stub was automatically generated by stubgen.
44

@@ -115,10 +115,11 @@ class _ActionsContainer:
115115
def register(self, registry_name, value, object): ...
116116
def set_defaults(self, **kwargs): ...
117117
def get_default(self, dest): ...
118-
def add_argument(
118+
def add_argument(self,
119119
*args: str,
120120
action: str = None,
121121
nargs: str = None,
122+
const: Any = None,
122123
default: Any = None,
123124
type: Any = None,
124125
choices: Any = None, # TODO: Container?

0 commit comments

Comments
 (0)