From 6afd33397c27b46db0f518044a33b6210a7a311c Mon Sep 17 00:00:00 2001 From: Philipp A Date: Fri, 25 Aug 2023 17:34:35 +0200 Subject: [PATCH] conditional import 1 --- src/hatch/env/plugin/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hatch/env/plugin/interface.py b/src/hatch/env/plugin/interface.py index d6dc0400e..22673d964 100644 --- a/src/hatch/env/plugin/interface.py +++ b/src/hatch/env/plugin/interface.py @@ -3,15 +3,18 @@ import os import sys from abc import ABC, abstractmethod -from collections.abc import Iterable from contextlib import contextmanager from os.path import isabs +from typing import TYPE_CHECKING from hatch.config.constants import AppEnvVars from hatch.env.utils import add_verbosity_flag from hatch.project.utils import format_script_commands, parse_script_command from hatch.utils.structures import EnvVars +if TYPE_CHECKING: + from collections.abc import Iterable + class EnvironmentInterface(ABC): """