Skip to content

Commit

Permalink
interpreter: add another overload of source_strings_to_files
Browse files Browse the repository at this point in the history
So that we can handle SourcesVarargsType
  • Loading branch information
dcbaker authored and eli-schwartz committed Oct 4, 2023
1 parent 922af7d commit c4458a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3103,6 +3103,9 @@ def source_strings_to_files(self, sources: T.List[T.Union[mesonlib.FileOrString,
@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.
Expand Down

0 comments on commit c4458a9

Please sign in to comment.