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

Function wrapper

ddserver/utils/deps.py:120–133  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

118 in requirements.iteritems()}
119
120 def wrapper(func):
121 def wrapped(*args, **kwargs):
122 # Update the keyword arguments with the required instances
123 kwargs.update({name : export.instance
124 for name, export
125 in exports.iteritems()
126 if name not in kwargs})
127
128 return func(*args,
129 **kwargs)
130
131 wrapped.__name__ = func.__name__
132
133 return wrapped
134 return wrapper
135
136

Callers

nothing calls this directly

Calls 4

ExportClass · 0.85
requireFunction · 0.85
extendMethod · 0.80
loadMethod · 0.80

Tested by

no test coverage detected