From 1d0fa00e554f60ab09d6523558bb6978ef602d69 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Fri, 12 Jul 2024 10:21:06 -0400 Subject: [PATCH] 21935: Correct return type of arvados.api.http_cache Arvados-DCO-1.1-Signed-off-by: Brett Smith --- sdk/python/arvados/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/arvados/api.py b/sdk/python/arvados/api.py index f316ab9904..e2f47a4dff 100644 --- a/sdk/python/arvados/api.py +++ b/sdk/python/arvados/api.py @@ -155,7 +155,7 @@ def _new_http_error(cls, *args, **kwargs): errors.ApiError, *args, **kwargs) apiclient_errors.HttpError.__new__ = staticmethod(_new_http_error) -def http_cache(data_type: str) -> cache.SafeHTTPCache: +def http_cache(data_type: str) -> Optional[SafeHTTPCache]: """Set up an HTTP file cache This function constructs and returns an `arvados.cache.SafeHTTPCache` -- 2.30.2