From f4cc60bf20ff5c365950d54f2f420d2f837181af Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 28 Aug 2022 10:49:00 -0400 Subject: flake8: move typing-only imports into T.TYPE_CHECKING --- mesonbuild/compilers/objcpp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers/objcpp.py') 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): -- cgit v1.2.3