build: add some missing type annotations

So that we can get interpreter/mesonmain.py type safe.
pull/9167/head
Dylan Baker 4 years ago
parent 9bca4a4b94
commit 343b40f67a
  1. 6
      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

Loading…
Cancel
Save