Hacker News new | ask | show | jobs
by domlebo70 153 days ago
I don't code in Python much. Are those type annotations really how people are using them, or is it just for the example?

    def list_files_tool(path: str) -> Dict[str, Any]:
And it returns

    {
        "path": str(full_path),
        "files": all_files
    }
Is that useful?