aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-23 14:43:00 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-08-27 14:49:23 -0700
commitb2b4c374fc5b49809c6bb0fabfaec33c62179fd3 (patch)
treed23fea28f5befa6ed1068b95a1e2d7a9e462fcdf /mesonbuild/environment.py
parentaa895b383cc726800d7d6e7e540db96dfe9df1f2 (diff)
downloadmeson-b2b4c374fc5b49809c6bb0fabfaec33c62179fd3.zip
meson-b2b4c374fc5b49809c6bb0fabfaec33c62179fd3.tar.gz
meson-b2b4c374fc5b49809c6bb0fabfaec33c62179fd3.tar.bz2
environment: Add correct annotation for wrap_resolver
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r--mesonbuild/environment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index dbf0d4e..4b3b6db 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -50,6 +50,7 @@ if T.TYPE_CHECKING:
from configparser import ConfigParser
from .dependencies import ExternalProgram
+ from .wrap.wrap import Resolver
build_filename = 'meson.build'
@@ -571,7 +572,7 @@ class Environment:
self.default_cmake = ['cmake']
self.default_pkgconfig = ['pkg-config']
- self.wrap_resolver = None
+ self.wrap_resolver: T.Optional['Resolver'] = None
def _load_machine_file_options(self, config: 'ConfigParser', properties: Properties, machine: MachineChoice) -> None:
"""Read the contents of a Machine file and put it in the options store."""