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

Method wrapper

sdk/python/src/dagger/mod/_module.py:647–649  ·  view source on GitHub ↗
(fn: Func[P, R])

Source from the content-addressed store, hash-verified

645 """
646
647 def wrapper(fn: Func[P, R]) -> Func[P, R]:
648 setattr(fn, CHECK_DEF_KEY, True)
649 return fn
650
651 return wrapper(func) if func else wrapper
652

Callers

nothing calls this directly

Calls 6

_process_typeMethod · 0.95
FunctionDefinitionClass · 0.90
ConstructorClass · 0.90
BadUsageErrorClass · 0.90
is_annotatedFunction · 0.90
configure_converter_enumFunction · 0.90

Tested by

no test coverage detected