diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-27 14:10:57 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-09-24 09:44:40 -0700 |
commit | 343b40f67a5a07e0e3864a447999b4831769b162 (patch) | |
tree | 7142ecc300aebda0283c353e30fad6c28d67ae4f /mesonbuild/build.py | |
parent | 9bca4a4b944f8df2e94481ba87ce1746a94eb055 (diff) | |
download | meson-343b40f67a5a07e0e3864a447999b4831769b162.zip meson-343b40f67a5a07e0e3864a447999b4831769b162.tar.gz meson-343b40f67a5a07e0e3864a447999b4831769b162.tar.bz2 |
build: add some missing type annotations
So that we can get interpreter/mesonmain.py type safe.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index b5fa8ea..6f1d8e1 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -234,12 +234,12 @@ class Build: self.postconf_scripts: T.List['ExecutableSerialisation'] = [] self.dist_scripts = [] self.install_dirs: T.List[InstallDir] = [] - self.dep_manifest_name = None - self.dep_manifest = {} + self.dep_manifest_name: T.Optional[str] = None + self.dep_manifest: T.Dict[str, T.Dict[str, T.Any]] = {} # TODO: what should this dict be? self.stdlibs = PerMachine({}, {}) self.test_setups: T.Dict[str, TestSetup] = {} self.test_setup_default_name = None - self.find_overrides = {} + self.find_overrides: T.Dict[str, T.Union['Executable', programs.ExternalProgram, programs.OverrideProgram]] = {} self.searched_programs = set() # The list of all programs that have been searched for. # If we are doing a cross build we need two caches, if we're doing a |