diff --git a/src/google/adk/cli/built_in_agents/tools/cleanup_unused_files.py b/src/google/adk/cli/built_in_agents/tools/cleanup_unused_files.py index 6b144e8fde..684208f64c 100644 --- a/src/google/adk/cli/built_in_agents/tools/cleanup_unused_files.py +++ b/src/google/adk/cli/built_in_agents/tools/cleanup_unused_files.py @@ -17,6 +17,7 @@ from __future__ import annotations from typing import Any +from typing import Optional from google.adk.tools.tool_context import ToolContext @@ -27,8 +28,8 @@ async def cleanup_unused_files( used_files: list[str], tool_context: ToolContext, - file_patterns: list[str] | None = None, - exclude_patterns: list[str] | None = None, + file_patterns: Optional[list[str]] = None, + exclude_patterns: Optional[list[str]] = None, ) -> dict[str, Any]: """Identify and optionally delete unused files in project directories.