[arvados] updated: 2.7.0-5594-g1372710a7f

git repository hosting git at public.arvados.org
Mon Dec 11 14:30:56 UTC 2023


Summary of changes:
 sdk/python/arvados/__init__.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

       via  1372710a7f3b33d822c52455ed613c1063ad4b16 (commit)
      from  6fc40dd09630b712b5030dbed51e6e47e25b294c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1372710a7f3b33d822c52455ed613c1063ad4b16
Author: Brett Smith <brett.smith at curii.com>
Date:   Mon Dec 11 09:29:56 2023 -0500

    21283: Make arvados.api.__call__ a staticmethod
    
    This gives it a more helpful signature and docstring with less code.
    
    Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>

diff --git a/sdk/python/arvados/__init__.py b/sdk/python/arvados/__init__.py
index 6303b84f70..83f658201c 100644
--- a/sdk/python/arvados/__init__.py
+++ b/sdk/python/arvados/__init__.py
@@ -42,8 +42,7 @@ from .retry import RetryLoop
 # module and you can import it normally, but we make that module callable so
 # all the existing code that says `arvados.api('v1', ...)` still works.
 class _CallableAPIModule(api.__class__):
-    def __call__(self, *args, **kwargs):
-        return self.api(*args, **kwargs)
+    __call__ = staticmethod(api.api)
 api.__class__ = _CallableAPIModule
 
 # Override logging module pulled in via `from ... import *`

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list