From d1521838c53a900a453f3903d6fed7f0eb9be176 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 23 Oct 2025 16:15:29 -0300 Subject: [PATCH] SIENTIAPDE-1314 SIENTIAPDE-1314: Update type annotations in encrypt.py for improved clarity and type safety. Added type hint for file_tree variable and included type ignore for yaml import. --- encrypt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/encrypt.py b/encrypt.py index 6aff252..ad990a6 100644 --- a/encrypt.py +++ b/encrypt.py @@ -1,7 +1,8 @@ import os import argparse from pathspec import PathSpec -import yaml +import yaml # type: ignore +from typing import Any ''' Usage: @@ -33,7 +34,7 @@ def encode_file_tree_to_yaml(directory, ignore_file, include_library): """Encode the file tree into a single YAML file.""" ignore_patterns = load_ignore_patterns( ignore_file, include_library) if ignore_file else None - file_tree = {} + file_tree: dict[str, Any] = {} for root, dirs, files in os.walk(directory): # Skip ignored directories