fix: fix some minor type annotation issues
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user