aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2015backend.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-06-10 00:29:27 -0400
committerXavier Claessens <xclaesse@gmail.com>2022-06-10 09:15:48 -0400
commita49cd00d644c8adce974175850c047056d578b05 (patch)
tree052fc6b2ea966adffc3d65201fa5e3c3a11829e2 /mesonbuild/backend/vs2015backend.py
parent6aeb8792ca34956843a43dbb0f360cba656a6090 (diff)
downloadmeson-a49cd00d644c8adce974175850c047056d578b05.zip
meson-a49cd00d644c8adce974175850c047056d578b05.tar.gz
meson-a49cd00d644c8adce974175850c047056d578b05.tar.bz2
treewide: various cleanups to move imports for mypy into typechecking blocks
Along the way, add __future__ annotations where lacking.
Diffstat (limited to 'mesonbuild/backend/vs2015backend.py')
-rw-r--r--mesonbuild/backend/vs2015backend.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/mesonbuild/backend/vs2015backend.py b/mesonbuild/backend/vs2015backend.py
index 4952caf..25e0a5e 100644
--- a/mesonbuild/backend/vs2015backend.py
+++ b/mesonbuild/backend/vs2015backend.py
@@ -11,13 +11,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import annotations
+
+import typing as T
from .vs2010backend import Vs2010Backend
from ..mesonlib import MesonException
-from ..interpreter import Interpreter
-from ..build import Build
-import typing as T
+if T.TYPE_CHECKING:
+ from ..build import Build
+ from ..interpreter import Interpreter
class Vs2015Backend(Vs2010Backend):
def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]):