diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index b1b4a7c92..4ca36892b 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -11,13 +11,14 @@ # 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 os.path import typing as T from .. import coredata from .. import mlog -from ..mesonlib import MachineChoice, MesonException, version_compare, OptionKey +from ..mesonlib import MesonException, version_compare, OptionKey from .c_function_attributes import C_FUNC_ATTRIBUTES from .mixins.clike import CLikeCompiler from .mixins.ccrx import CcrxCompiler @@ -44,6 +45,7 @@ if T.TYPE_CHECKING: from ..envconfig import MachineInfo from ..environment import Environment from ..linkers import DynamicLinker + from ..mesonlib import MachineChoice from ..programs import ExternalProgram from .compilers import CompileCheckMode diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py index 3d2ed25ac..9731daf4a 100644 --- a/mesonbuild/compilers/objcpp.py +++ b/mesonbuild/compilers/objcpp.py @@ -11,11 +11,12 @@ # 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 .. import coredata -from ..mesonlib import MachineChoice, OptionKey +from ..mesonlib import OptionKey from .mixins.clike import CLikeCompiler from .compilers import Compiler @@ -27,6 +28,7 @@ if T.TYPE_CHECKING: from ..envconfig import MachineInfo from ..environment import Environment from ..linkers import DynamicLinker + from ..mesonlib import MachineChoice class ObjCPPCompiler(CLikeCompiler, Compiler):