aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/kwargs.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-05-26 15:46:10 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-05-26 17:42:14 -0400
commitfda4c49c34f2650b739ebf741e45228c5ebafb0c (patch)
treede8d5d765aa116ccbdc4203f479535a8b04594b3 /mesonbuild/interpreter/kwargs.py
parent9b9154017e9edc7b5b3bd93dce74ffa9c8b22a03 (diff)
downloadmeson-fda4c49c34f2650b739ebf741e45228c5ebafb0c.zip
meson-fda4c49c34f2650b739ebf741e45228c5ebafb0c.tar.gz
meson-fda4c49c34f2650b739ebf741e45228c5ebafb0c.tar.bz2
fix custom_target crash if boolean true is specified in install_dir
We accept boolean false to indicate "do not install this one particular output", but the type checking simply checked if it is a bool. We do this correctly for configure_file, so copy the same validator from there.
Diffstat (limited to 'mesonbuild/interpreter/kwargs.py')
-rw-r--r--mesonbuild/interpreter/kwargs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py
index f2460ac..bb56ff2 100644
--- a/mesonbuild/interpreter/kwargs.py
+++ b/mesonbuild/interpreter/kwargs.py
@@ -183,7 +183,7 @@ class CustomTarget(TypedDict):
input: T.List[T.Union[str, build.BuildTarget, build.CustomTarget, build.CustomTargetIndex,
build.ExtractedObjects, build.GeneratedList, ExternalProgram, File]]
install: bool
- install_dir: T.List[T.Union[str, bool]]
+ install_dir: T.List[T.Union[str, T.Literal[False]]]
install_mode: FileMode
install_tag: T.List[T.Optional[str]]
output: T.List[str]