aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-03-14 15:07:54 +0100
committerDylan Baker <dylan@pnwbakers.com>2022-03-14 10:27:38 -0700
commit6dd04ce57cae20694d9e1410b201164d980454f1 (patch)
treed730afa043fa25e6f883bcd82cb82137e21421c5
parent9d42e58ea2d673a63a9918f138b81d1bd6057e73 (diff)
downloadmeson-6dd04ce57cae20694d9e1410b201164d980454f1.zip
meson-6dd04ce57cae20694d9e1410b201164d980454f1.tar.gz
meson-6dd04ce57cae20694d9e1410b201164d980454f1.tar.bz2
sourceset: improve typing of SourceSetRule
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--mesonbuild/modules/sourceset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/sourceset.py b/mesonbuild/modules/sourceset.py
index c03d180..3c15749 100644
--- a/mesonbuild/modules/sourceset.py
+++ b/mesonbuild/modules/sourceset.py
@@ -59,8 +59,8 @@ _WHEN_KW: KwargInfo[T.List[T.Union[str, dependencies.Dependency]]] = KwargInfo(
class SourceSetRule(T.NamedTuple):
keys: T.List[str]
- sources: T.Any
- if_false: T.Any
+ sources: T.List[T.Union[mesonlib.FileOrString, build.GeneratedTypes]]
+ if_false: T.List[T.Union[mesonlib.FileOrString, build.GeneratedTypes]]
sourcesets: T.List[SourceSetImpl]
deps: T.List[dependencies.Dependency]
extra_deps: T.List[dependencies.Dependency]