aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-14 15:36:16 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-22 09:12:54 -0700
commit5d3a60ae65f44ea300d61dd0f08ad01618a105a6 (patch)
tree9104700da64b73c42d4a7b32e4c76d40e50d86c4
parentf2ad5e377e0c70f4c7292f6abb33cbaa283d84b2 (diff)
downloadmeson-5d3a60ae65f44ea300d61dd0f08ad01618a105a6.zip
meson-5d3a60ae65f44ea300d61dd0f08ad01618a105a6.tar.gz
meson-5d3a60ae65f44ea300d61dd0f08ad01618a105a6.tar.bz2
minstall: fix type annotation for add_arguments
This takes an `argparse.ArgumentParser` instance, not a namespace
-rw-r--r--mesonbuild/minstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
index e14a047..d91f61b 100644
--- a/mesonbuild/minstall.py
+++ b/mesonbuild/minstall.py
@@ -64,7 +64,7 @@ build definitions so that it will not break when the change happens.'''
selinux_updates: T.List[str] = []
-def add_arguments(parser: argparse.Namespace) -> None:
+def add_arguments(parser: argparse.ArgumentParser) -> None:
parser.add_argument('-C', default='.', dest='wd',
help='directory to cd into before running')
parser.add_argument('--profile-self', action='store_true', dest='profile',