aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-06-08 14:11:31 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-06-08 19:18:03 -0400
commitac576530c43734495815f22456596772a8f6a8cc (patch)
tree09a68d644916eb5df22b379d8434f7946c9585d9 /mesonbuild/build.py
parent2c6def856bdc01de200238c0f4204e980de34987 (diff)
downloadmeson-ac576530c43734495815f22456596772a8f6a8cc.zip
meson-ac576530c43734495815f22456596772a8f6a8cc.tar.gz
meson-ac576530c43734495815f22456596772a8f6a8cc.tar.bz2
build: correctly annotate _process_install_tag helper
Which could receive `None | Sequence[Optional[str]]`, but isn't annotated for the `None`
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 140a73c..245f612 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -113,7 +113,7 @@ known_shmod_kwargs = known_build_target_kwargs | {'vs_module_defs'}
known_stlib_kwargs = known_build_target_kwargs | {'pic', 'prelink'}
known_jar_kwargs = known_exe_kwargs | {'main_class', 'java_resources'}
-def _process_install_tag(install_tag: T.List[T.Optional[str]],
+def _process_install_tag(install_tag: T.Optional[T.Sequence[T.Optional[str]]],
num_outputs: int) -> T.List[T.Optional[str]]:
_install_tag: T.List[T.Optional[str]]
if not install_tag: