diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-10 14:27:47 -0700 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-09-30 21:01:38 +0200 |
commit | c11eb869958462dff67a020e2835c193edba56a4 (patch) | |
tree | 72d0bead83240bf979de5c296e8bbc89ad4f7767 | |
parent | d80cfa27c96abd44aaf4df3c274d2f2d4c30ec47 (diff) | |
download | meson-c11eb869958462dff67a020e2835c193edba56a4.zip meson-c11eb869958462dff67a020e2835c193edba56a4.tar.gz meson-c11eb869958462dff67a020e2835c193edba56a4.tar.bz2 |
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.
-rw-r--r-- | mesonbuild/build.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 8ecb259..1371985 100644 --- a/mesonbuild/build.py +++ b/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 = [] |