From df1b95cf2b015fc5b756609f2cae1e0dc7176702 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 7 Sep 2022 15:38:36 -0700 Subject: pylint: enable consider-merging-isinstance --- mesonbuild/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/build.py') diff --git a/mesonbuild/build.py b/mesonbuild/build.py index c39726c..bf87071 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -828,7 +828,7 @@ class BuildTarget(Target): # the languages of those libraries as well. if self.link_targets or self.link_whole_targets: for t in itertools.chain(self.link_targets, self.link_whole_targets): - if isinstance(t, CustomTarget) or isinstance(t, CustomTargetIndex): + if isinstance(t, (CustomTarget, CustomTargetIndex)): continue # We can't know anything about these. for name, compiler in t.compilers.items(): if name in link_langs and name not in self.compilers: -- cgit v1.1