interpreter: Add return type to func_dependency

pull/10617/head
Dylan Baker 2 years ago committed by Eli Schwartz
parent 7af0078d4e
commit 84d06a8f4b
  1. 2
      mesonbuild/interpreter/interpreter.py

@ -1652,7 +1652,7 @@ class Interpreter(InterpreterBase, HoldableObject):
@disablerIfNotFound
@permittedKwargs(permitted_dependency_kwargs)
@typed_pos_args('dependency', varargs=str, min_varargs=1)
def func_dependency(self, node, args, kwargs):
def func_dependency(self, node, args, kwargs) -> Dependency:
# Replace '' by empty list of names
names = [n for n in args[0] if n]
if len(names) > 1:

Loading…
Cancel
Save