-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
himanshu748/hive
#6Description
Description
Several functions in the file_system_toolkits module use generic dict return type hints instead of more specific dict[str, Any] type hints. Adding specific type hints improves code clarity and IDE support.
Files Affected
tools/src/aden_tools/tools/file_system_toolkits/list_dir/list_dir.pytools/src/aden_tools/tools/file_system_toolkits/view_file/view_file.pytools/src/aden_tools/tools/file_system_toolkits/write_to_file/write_to_file.pytools/src/aden_tools/tools/file_system_toolkits/grep_search/grep_search.py
Current State
def list_dir(...) -> dict:Expected State
from typing import Any
def list_dir(...) -> dict[str, Any]:Rationale
- Improved type safety and IDE autocomplete support
- Consistent with Python typing best practices
- Better documentation of function contracts
Submitted by: Himanshu Jha (@himanshu748)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels