Description
I noticed that several utility methods/functions in the codebase do not currently have explicit return type annotations.
Adding these annotations would improve static analysis, IDE support, and consistency with the existing typed codebase.
The main areas I noticed are:
src/smolagents/tools.py
src/smolagents/memory.py
src/smolagents/vision_web_browser.py
I have investigated these locations and prepared a small implementation that adds the missing return type annotations.
Before proceeding further, I wanted to confirm that this type of code-quality improvement is in scope and would be useful for the project, in accordance with the contribution guidelines.
Related work: #2676
Would a maintainer consider this issue for the status:accepted label if appropriate?
Description
I noticed that several utility methods/functions in the codebase do not currently have explicit return type annotations.
Adding these annotations would improve static analysis, IDE support, and consistency with the existing typed codebase.
The main areas I noticed are:
src/smolagents/tools.pysrc/smolagents/memory.pysrc/smolagents/vision_web_browser.pyI have investigated these locations and prepared a small implementation that adds the missing return type annotations.
Before proceeding further, I wanted to confirm that this type of code-quality improvement is in scope and would be useful for the project, in accordance with the contribution guidelines.
Related work: #2676
Would a maintainer consider this issue for the
status:acceptedlabel if appropriate?