From b2b4c374fc5b49809c6bb0fabfaec33c62179fd3 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 23 Aug 2021 14:43:00 -0700 Subject: [PATCH] environment: Add correct annotation for wrap_resolver --- mesonbuild/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index dbf0d4efe..4b3b6db0b 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."""