From 0703ee0aef68e235c1e22d6448b79dfbbb5c8039 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 14 Jun 2022 00:42:26 -0400 Subject: move various unused typing-only imports into type-checking blocks --- mesonbuild/cmake/executor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mesonbuild/cmake/executor.py') diff --git a/mesonbuild/cmake/executor.py b/mesonbuild/cmake/executor.py index 309b42955..526620d24 100644 --- a/mesonbuild/cmake/executor.py +++ b/mesonbuild/cmake/executor.py @@ -14,20 +14,23 @@ # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool. +from __future__ import annotations import subprocess as S -from pathlib import Path from threading import Thread import typing as T import re import os from .. import mlog -from ..mesonlib import PerMachine, Popen_safe, version_compare, MachineChoice, is_windows, OptionKey +from ..mesonlib import PerMachine, Popen_safe, version_compare, is_windows, OptionKey from ..programs import find_external_program, NonExistingExternalProgram if T.TYPE_CHECKING: + from pathlib import Path + from ..environment import Environment + from ..mesonlib import MachineChoice from ..programs import ExternalProgram TYPE_result = T.Tuple[int, T.Optional[str], T.Optional[str]] -- cgit v1.2.3