MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / wrapper

Function wrapper

tools/python-3.11.9-amd64/Lib/dataclasses.py:234–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232
233 @functools.wraps(user_function)
234 def wrapper(self):
235 key = id(self), _thread.get_ident()
236 if key in repr_running:
237 return '...'
238 repr_running.add(key)
239 try:
240 result = user_function(self)
241 finally:
242 repr_running.discard(key)
243 return result
244 return wrapper
245
246class InitVar:

Callers

nothing calls this directly

Calls 3

idFunction · 0.50
addMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected