aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-05-23 14:51:11 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-05-23 23:32:47 -0400
commitd97d3721a3f1c1560430752428158304751fddc3 (patch)
tree77aa60d65d9d9e90747df9af7adc8abbd4fc4859
parent10fc19ecb46bea3b32ec0775818e43c5c942acff (diff)
downloadmeson-d97d3721a3f1c1560430752428158304751fddc3.zip
meson-d97d3721a3f1c1560430752428158304751fddc3.tar.gz
meson-d97d3721a3f1c1560430752428158304751fddc3.tar.bz2
interpreter: Add another overload to source_strings_to_files
Which doesn't have `StructuredSources`, as is actually quite common.
-rw-r--r--mesonbuild/interpreter/interpreter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 45ae380..09c6d75 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2849,6 +2849,9 @@ Try setting b_lundef to false instead.'''.format(self.coredata.options[OptionKey
def source_strings_to_files(self, sources: T.List['mesonlib.FileOrString'], strict: bool = False) -> T.List['mesonlib.FileOrString']: ... # noqa: F811
@T.overload
+ def source_strings_to_files(self, sources: T.List[mesonlib.FileOrString, build.GeneratedTypes]) -> T.List[T.Union[mesonlib.File, build.GeneratedTypes]]: ... # noqa: F811
+
+ @T.overload
def source_strings_to_files(self, sources: T.List['SourceInputs'], strict: bool = True) -> T.List['SourceOutputs']: ... # noqa: F811
def source_strings_to_files(self, sources: T.List['SourceInputs'], strict: bool = True) -> T.List['SourceOutputs']: # noqa: F811