diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-09-28 15:44:05 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-10-04 13:59:55 -0400 |
| commit | c4458a9a693bfd0ccb23c5fbbfb7be6c4a008f82 (patch) | |
| tree | e8ed836ec9175291d53cf83a72f2b4cc67a52dc6 | |
| parent | 922af7dfce1a57de9c56b4e5f6d2221524848822 (diff) | |
| download | meson-c4458a9a693bfd0ccb23c5fbbfb7be6c4a008f82.tar.gz | |
interpreter: add another overload of source_strings_to_files
So that we can handle SourcesVarargsType
| -rw-r--r-- | mesonbuild/interpreter/interpreter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index a65647580..a56e922e6 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -3103,6 +3103,9 @@ class Interpreter(InterpreterBase, HoldableObject): @T.overload def source_strings_to_files(self, sources: T.List['SourceInputs'], strict: bool = True) -> T.List['SourceOutputs']: ... # noqa: F811 + @T.overload + def source_strings_to_files(self, sources: T.List[SourcesVarargsType], 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 """Lower inputs to a list of Targets and Files, replacing any strings. |
