MCPcopy Create free account
hub / github.com/authlib/authlib / wrapper

Function wrapper

authlib/oauth2/rfc6749/hooks.py:25–29  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

23 after_name = after or f"after_{func.__name__}"
24
25 def wrapper(self, *args, **kwargs):
26 self.execute_hook(before_name, *args, **kwargs)
27 result = func(self, *args, **kwargs)
28 self.execute_hook(after_name, result)
29 return result
30
31 return wrapper
32

Callers

nothing calls this directly

Calls 1

execute_hookMethod · 0.80

Tested by

no test coverage detected