build: add forward delcarations to CommandBase class

It would probably be better if CommandBase had an initializer so it
could set the depend_files and dependencies attributes itself, but this
will make mypy happier.
pull/9329/head
Dylan Baker 4 years ago committed by Daniel Mensinger
parent d80cfa27c9
commit c11eb86995
  1. 5
      mesonbuild/build.py

@ -2226,6 +2226,11 @@ class BothLibraries(SecondLevelHolder):
raise MesonBugException(f'self._preferred_library == "{self._preferred_library}" is neither "shared" nor "static".')
class CommandBase:
depend_files: T.List[File]
dependencies: T.List[T.Union[BuildTarget, 'CustomTarget']]
subproject: str
def flatten_command(self, cmd):
cmd = listify(cmd)
final_cmd = []

Loading…
Cancel
Save