fix: fix some minor type annotation issues

This commit is contained in:
2025-10-30 19:01:30 +05:30
parent 8ab776d7ba
commit e93e2174b6
@@ -45,7 +45,7 @@ class InlineJinjaHandler:
def process_yaml_file(
self, file_path: Path, defer_rendering: bool = True
) -> Any:
) -> dict[str, Any]:
"""
Process a YAML file containing inline Jinja2 templates.
@@ -65,8 +65,8 @@ class InlineJinjaHandler:
self,
yaml_content: str,
defer_rendering: bool = True,
context: Optional[dict[str, Any]] = None,
) -> Any:
context: Optional[Dict[str, Any]] = None,
) -> dict[str, Any]:
"""
Process YAML content containing inline Jinja2 templates.
@@ -97,7 +97,7 @@ class InlineJinjaHandler:
def _extract_templates( # pylint: disable=too-many-locals,too-many-branches,too-many-statements,too-many-nested-blocks
self, yaml_content: str
) -> Any:
) -> dict[str, Any]:
"""
Extract templates and replace with placeholders.