aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-12-03 16:30:39 -0800
committerEli Schwartz <eschwartz93@gmail.com>2021-12-20 16:03:19 -0500
commit3656b8c6d4ed8b3c0d42fb92caf90adc9247f24d (patch)
tree32e0611529625362483af426bc193d44bddf2df4 /mesonbuild/modules/gnome.py
parent1410d2e9c5b34dd89fa6135f6518b48d43ea70da (diff)
downloadmeson-3656b8c6d4ed8b3c0d42fb92caf90adc9247f24d.zip
meson-3656b8c6d4ed8b3c0d42fb92caf90adc9247f24d.tar.gz
meson-3656b8c6d4ed8b3c0d42fb92caf90adc9247f24d.tar.bz2
modules/gnome: use T.Sequence instead of T.List
because List is invariant, and that's not what we want.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 27a0f59..1f053f5 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -754,7 +754,7 @@ class GnomeModule(ExtensionModule):
return ret
- def _scan_gir_targets(self, state: 'ModuleState', girtargets: T.List[build.BuildTarget]) -> T.List[T.Union[str, build.Executable]]:
+ def _scan_gir_targets(self, state: 'ModuleState', girtargets: T.Sequence[build.BuildTarget]) -> T.List[T.Union[str, build.Executable]]:
ret: T.List[T.Union[str, build.Executable]] = []
for girtarget in girtargets:
@@ -806,7 +806,7 @@ class GnomeModule(ExtensionModule):
ret += girtarget.get_external_deps()
return ret
- def _get_gir_targets_inc_dirs(self, girtargets: T.List[build.BuildTarget]) -> T.List[build.IncludeDirs]:
+ def _get_gir_targets_inc_dirs(self, girtargets: T.Sequence[build.BuildTarget]) -> T.List[build.IncludeDirs]:
ret: T.List[build.IncludeDirs] = []
for girtarget in girtargets:
ret += girtarget.get_include_dirs()
@@ -841,7 +841,7 @@ class GnomeModule(ExtensionModule):
return cflags, internal_ldflags, external_ldflags
def _make_gir_filelist(self, state: 'ModuleState', srcdir: str, ns: str,
- nsversion: str, girtargets: T.List[build.BuildTarget],
+ nsversion: str, girtargets: T.Sequence[build.BuildTarget],
libsources: T.Sequence[T.Union[
str, mesonlib.File, build.GeneratedList,
build.CustomTarget, build.CustomTargetIndex]]