diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-14 00:42:26 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-03 14:11:31 -0400 |
| commit | 0703ee0aef68e235c1e22d6448b79dfbbb5c8039 (patch) | |
| tree | 0f7ba031362d926b726852d2070ecc8377bdb5bd /mesonbuild/cmake/executor.py | |
| parent | 46148f923b196e1b1d004e68d43edc2daca4dd25 (diff) | |
| download | meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.tar.gz | |
move various unused typing-only imports into type-checking blocks
Diffstat (limited to 'mesonbuild/cmake/executor.py')
| -rw-r--r-- | mesonbuild/cmake/executor.py | 7 |
1 files changed, 5 insertions, 2 deletions
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]] |
