From f85629e374ac8ba19a4993077e5a99165de2f5e2 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Sat, 4 Dec 2021 21:26:21 -0800 Subject: [PATCH] modules/gnome: use T.Sequence instead of T.List Which is pretty much necessary to make anything involving unions of lists work --- mesonbuild/modules/gnome.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 3300bd513..f5de07dcf 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -1795,7 +1795,8 @@ class GnomeModule(ExtensionModule): *, install: bool = False, install_dir: T.Optional[T.Sequence[T.Union[str, bool]]] = None, - depends: T.Optional[T.List[CustomTarget]] = None) -> build.CustomTarget: + depends: T.Optional[T.Sequence[T.Union[CustomTarget, CustomTargetIndex, BuildTarget]]] = None + ) -> build.CustomTarget: real_cmd: T.List[T.Union[str, ExternalProgram]] = [state.find_program(['glib-mkenums', 'mkenums'])] real_cmd.extend(cmd) custom_kwargs = { @@ -1805,7 +1806,7 @@ class GnomeModule(ExtensionModule): 'command': real_cmd, 'install': install, 'install_dir': install_dir or state.environment.coredata.get_option(mesonlib.OptionKey('includedir')), - 'depends': depends or [], + 'depends': list(depends or []), } return build.CustomTarget(output, state.subdir, state.subproject, custom_kwargs, # https://github.com/mesonbuild/meson/issues/973