From 3097701e9841dcc63d1f1da7839a53dd0dda917a Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 5 Nov 2026 21:26:37 +0900 Subject: [PATCH] change: drop explicit import --- dzgui/api/acf.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dzgui/api/acf.py b/dzgui/api/acf.py index ab35b3b..ce243a4 100644 --- a/dzgui/api/acf.py +++ b/dzgui/api/acf.py @@ -1,16 +1,18 @@ import logging import re -from collections.abc import Iterator from datetime import datetime from pathlib import Path -from typing import Any +from typing import Any, TYPE_CHECKING from warnings import deprecated from dzgui.const.constants import APP_NAME logger = logging.getLogger(APP_NAME) +if TYPE_CHECKING: + from collections.abc import Iterator + class ACF: def __init__(self, file: Path) -> None: @@ -43,7 +45,7 @@ class ACF: def dequote(cls, s: str) -> str: return s.rstrip('"').lstrip('"') - def parse(self, lines: Iterator[list[str]]) -> dict[str, str]: + def parse(self, lines: "Iterator[list[str]]") -> dict[str, str]: acf: dict[str, Any] = {} try: while True: