chore: use if TYPE_CHECKING: blocks (#2866)
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
from pathlib import Path
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Self
|
||||
|
||||
import jinja2
|
||||
|
||||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from pathlib import Path
|
||||
|
||||
FilesDict = dict[str, str | jinja2.Template]
|
||||
TemplateContext = dict[str, Any]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user