summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-10-05 09:20:32 -0700
committerNirbheek Chauhan <nirbheek@centricular.com>2021-10-19 15:34:52 +0530
commit90abae15336b7cfb22458e0d73cbe756863f7e49 (patch)
tree14812791b126151995611002c1b7e7e9b7fa5c6e
parent75f06a674bf95c75412221b21f1ad4d4d8c2b924 (diff)
downloadmeson-90abae15336b7cfb22458e0d73cbe756863f7e49.tar.gz
modules/gnome: Fix case that could never be hit due to bad types
It's impossible to get a Holder here, we'd get the unholdered build types. Mypy points this out for us.
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index bd3ead013..52cbe8cee 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -222,9 +222,9 @@ class GnomeModule(ExtensionModule):
ifile = os.path.join(ifile.subdir, ifile.fname)
elif isinstance(ifile, str):
ifile = os.path.join(state.subdir, ifile)
- elif isinstance(ifile, (interpreter.CustomTargetHolder,
- interpreter.CustomTargetIndexHolder,
- interpreter.GeneratedObjectsHolder)):
+ elif isinstance(ifile, (build.CustomTarget,
+ build.CustomTargetIndex,
+ build.GeneratedList)):
m = 'Resource xml files generated at build-time cannot be used ' \
'with gnome.compile_resources() because we need to scan ' \
'the xml for dependencies. Use configure_file() instead ' \