diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-12-04 21:26:21 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-01-18 21:58:24 -0500 |
commit | f85629e374ac8ba19a4993077e5a99165de2f5e2 (patch) | |
tree | 297d431899f44e0aeb323f03563d8390773b39c6 | |
parent | cd6e2c85a77b05472cb816a295bca0e1549e3557 (diff) | |
download | meson-f85629e374ac8ba19a4993077e5a99165de2f5e2.zip meson-f85629e374ac8ba19a4993077e5a99165de2f5e2.tar.gz meson-f85629e374ac8ba19a4993077e5a99165de2f5e2.tar.bz2 |
modules/gnome: use T.Sequence instead of T.List
Which is pretty much necessary to make anything involving unions of
lists work
-rw-r--r-- | mesonbuild/modules/gnome.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 3300bd5..f5de07d 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 |