Remove unnecessary isinstance call

This code predated typed_pos_args/typed_kwargs.
pull/12333/head
Tristan Partin 1 year ago committed by Eli Schwartz
parent 179355bf18
commit 54c30c96a0
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/modules/sourceset.py

@ -197,8 +197,6 @@ class SourceSetImpl(SourceSet, MutableModuleObject):
raise InterpreterException('add_all called with both positional and keyword arguments')
keys, dependencies = self.check_conditions(when)
for s in if_true:
if not isinstance(s, SourceSetImpl):
raise InvalidCode('Arguments to \'add_all\' after the first must be source sets')
s.frozen = True
self.rules.append(SourceSetRule(keys, dependencies, [], [], if_true, []))

Loading…
Cancel
Save