From d97d3721a3f1c1560430752428158304751fddc3 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 23 May 2022 14:51:11 -0700 Subject: interpreter: Add another overload to source_strings_to_files Which doesn't have `StructuredSources`, as is actually quite common. --- mesonbuild/interpreter/interpreter.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/interpreter') 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 -- cgit v1.1