diff options
author | Eric Lin <anselor@gmail.com> | 2021-03-29 15:28:14 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2021-04-02 18:00:03 -0400 |
commit | 33951e80a4c0436624ec113988760d4a5b23a9f4 (patch) | |
tree | 6d974d3c92e14afdb33159da85929b936edcc90b /cmd2/argparse_custom.py | |
parent | f90db5595c101d7613120cf2bf5d9d98e621aad9 (diff) | |
download | cmd2-git-33951e80a4c0436624ec113988760d4a5b23a9f4.tar.gz |
More things to make mypy happy.
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r-- | cmd2/argparse_custom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index 96449a45..9c5f5b8b 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -872,7 +872,7 @@ class Cmd2ArgumentParser(argparse.ArgumentParser): usage: Optional[str] = None, description: Optional[str] = None, epilog: Optional[str] = None, - parents: Sequence[argparse.ArgumentParser] = [], + parents: Sequence[argparse.ArgumentParser] = (), formatter_class: Type[argparse.HelpFormatter] = Cmd2HelpFormatter, prefix_chars: str = '-', fromfile_prefix_chars: Optional[str] = None, @@ -989,7 +989,7 @@ class Cmd2AttributeWrapper: arguments from a parser and which were added by cmd2. """ - def __init__(self, attribute: Any): + def __init__(self, attribute: Any) -> None: self.__attribute = attribute def get(self) -> Any: |