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/compilers/cuda.py | |
parent | 46148f923b196e1b1d004e68d43edc2daca4dd25 (diff) | |
download | meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.zip meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.tar.gz meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.tar.bz2 |
move various unused typing-only imports into type-checking blocks
Diffstat (limited to 'mesonbuild/compilers/cuda.py')
-rw-r--r-- | mesonbuild/compilers/cuda.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 78a58c7..172b9a5 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -11,6 +11,7 @@ # 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 enum import os.path @@ -20,19 +21,21 @@ import typing as T from .. import coredata from .. import mlog from ..mesonlib import ( - EnvironmentException, MachineChoice, Popen_safe, OptionOverrideProxy, + EnvironmentException, Popen_safe, OptionOverrideProxy, is_windows, LibType, OptionKey, ) from .compilers import (Compiler, cuda_buildtype_args, cuda_optimization_args, - cuda_debug_args, CompileCheckMode) + cuda_debug_args) if T.TYPE_CHECKING: + from .compilers import CompileCheckMode from ..build import BuildTarget from ..coredata import MutableKeyedOptionDictType, KeyedOptionDictType from ..dependencies import Dependency from ..environment import Environment # noqa: F401 from ..envconfig import MachineInfo from ..linkers import DynamicLinker + from ..mesonlib import MachineChoice from ..programs import ExternalProgram |