Fix simplefunc return bug. master
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 25 Jun 2024 00:27:58 +0000 (02:27 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 25 Jun 2024 00:27:58 +0000 (02:27 +0200)
pdm/perf.py

index 7c0d561..307dccb 100644 (file)
@@ -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"]