From 342058b0e804487b2ce3e2d7f0c748340d2399c4 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 25 Jun 2024 02:27:58 +0200 Subject: [PATCH] Fix simplefunc return bug. --- pdm/perf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] -- 2.11.0