interpreter: Add missing Union annotation

pull/11463/head
Dylan Baker 2 years ago committed by Eli Schwartz
parent 43abd62ecc
commit 853c16cbed
  1. 2
      mesonbuild/interpreter/interpreter.py

@ -3040,7 +3040,7 @@ class Interpreter(InterpreterBase, HoldableObject):
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
def source_strings_to_files(self, sources: T.List[T.Union[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

Loading…
Cancel
Save