From: Fredrik Tolf Date: Tue, 25 Jun 2024 00:27:58 +0000 (+0200) Subject: Fix simplefunc return bug. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=342058b0e804487b2ce3e2d7f0c748340d2399c4;p=pdm.git Fix simplefunc return bug. --- diff --git a/pdm/perf.py b/pdm/perf.py index 7c0d561..307dccb 100644 --- a/pdm/perf.py +++ b/pdm/perf.py @@ -193,7 +193,7 @@ class simplefunc(perfobj): def invoke(self, method, *args, **kwargs): if method not in self.map: raise AttributeError(method) - self.map[method](*args, **kwargs) + return self.map[method](*args, **kwargs) def pdm_protocols(self): return super().pdm_protocols() + ["invoke"]