From c605b1adf557e84b0e135b8a5399776723a01d44 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Wed, 28 May 2025 17:55:20 +0200 Subject: [PATCH] Typing --- src/serena/text_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serena/text_utils.py b/src/serena/text_utils.py index aa0b2b77..6cab02a8 100644 --- a/src/serena/text_utils.py +++ b/src/serena/text_utils.py @@ -3,6 +3,7 @@ import re from collections.abc import Callable from dataclasses import dataclass, field from enum import StrEnum +from typing import Any from joblib import Parallel, delayed from pathspec import PathSpec @@ -262,7 +263,7 @@ def search_files( log.info(f"Processing {len(filtered_paths)} files.") - def process_single_file(path: str): + def process_single_file(path: str) -> dict[str, Any]: """Process a single file - this function will be parallelized.""" try: file_content = file_reader(path)