Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Feb 20, 2024
1 parent 77465dc commit 026c289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dispatch/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def decorator(f):
def method(self, *args, **kwargs):
if len(args) == 1 and len(kwargs) == 0 and callable(args[0]):
return f(self, args[0])

def wrapper(func):
return f(self, func, *args, **kwargs)

return wrapper

return method
Expand Down

0 comments on commit 026c289

Please sign in to comment.