From d08412b1d86e968901887ef3cd59c12be598b7f8 Mon Sep 17 00:00:00 2001 From: stu Date: Fri, 18 Oct 2024 09:15:50 +0800 Subject: [PATCH] fix sort takes kws --- client_code/atomic/atoms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_code/atomic/atoms.py b/client_code/atomic/atoms.py index 368238c..1191de3 100644 --- a/client_code/atomic/atoms.py +++ b/client_code/atomic/atoms.py @@ -223,10 +223,10 @@ def __repr__(self): def _method(meth: str, convert_args=None): - def fn(self, *args): + def fn(self, *args, **kws): if convert_args is not None: args = convert_args(self, *args) - ret = getattr(list, meth)(self, *args) + ret = getattr(list, meth)(self, *args, *kws) self._request_render() return ret