File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1414from enum import EnumMeta
1515from operator import attrgetter
1616from pathlib import Path
17+ from typing import TYPE_CHECKING
1718from typing import Any
1819from typing import Callable
1920from typing import Generic
2526from pydantic import SecretStr
2627from rich .panel import Panel
2728
28- from zabbix_cli .bulk import BulkRunnerMode
29+ from zabbix_cli .config . constants import BulkRunnerMode
2930from zabbix_cli .config .constants import OutputFormat
30- from zabbix_cli .config .model import Config
3131from zabbix_cli .exceptions import ZabbixCLIError
3232from zabbix_cli .output .console import console
3333from zabbix_cli .output .console import exit_err
3939from zabbix_cli .output .prompts import str_prompt
4040from zabbix_cli .utils .args import parse_bool_arg
4141
42+ if TYPE_CHECKING :
43+ # NOTE: this is a potential HUGE footgun if anyone tries to use
44+ # this import outside of annotations. I don't like it, but
45+ # we really want to avoid defining the Pydantic models on startup
46+ from zabbix_cli .config .model import Config
47+
4248if sys .version_info >= (3 , 10 ):
4349 from itertools import pairwise
4450else :
You can’t perform that action at this time.
0 commit comments