interpreter: add type annotations for program_from_overrides

This commit is contained in:
Dylan Baker 2021-09-30 15:50:18 -07:00
parent 94a5ffabf3
commit 7f8961897a
1 changed files with 2 additions and 1 deletions

View File

@ -1368,7 +1368,8 @@ external dependencies (including libraries) must go to "dependencies".''')
extra_info.append(f"({' '.join(extprog.get_command())})")
return extprog
def program_from_overrides(self, command_names, extra_info):
def program_from_overrides(self, command_names: T.List[str], extra_info: T.List['mlog.TV_Loggable']) -> \
T.Optional[T.Union[ExternalProgram, 'OverrideProgram', 'build.Executable']]:
for name in command_names:
if not isinstance(name, str):
continue