MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / wrapper

Method wrapper

pywebio/output.py:2165–2170  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

2163
2164 @wraps(func)
2165 def wrapper(*args, **kwargs):
2166 self.__enter__()
2167 try:
2168 return func(*args, **kwargs)
2169 finally:
2170 self.__exit__(None, None, None)
2171
2172 @wraps(func)
2173 async def coro_wrapper(*args, **kwargs):

Callers

nothing calls this directly

Calls 2

__enter__Method · 0.95
__exit__Method · 0.95

Tested by

no test coverage detected