Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 820cc11

Browse files
authored
Provide types for ArgumentError members. (#4700)
1 parent 9134f7b commit 820cc11

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

stdlib/2and3/argparse.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ ZERO_OR_MORE: str
3838
_UNRECOGNIZED_ARGS_ATTR: str # undocumented
3939

4040
class ArgumentError(Exception):
41+
argument_name: Optional[str]
42+
message: str
4143
def __init__(self, argument: Optional[Action], message: str) -> None: ...
4244

4345
# undocumented

0 commit comments

Comments
 (0)