mirror of https://github.com/mahmoud/boltons.git
add a wraps TODO
This commit is contained in:
parent
5ada677d80
commit
a1f132039d
|
@ -268,6 +268,8 @@ def wraps(func, injected=None, **kw):
|
||||||
For more in-depth wrapping of functions, see the
|
For more in-depth wrapping of functions, see the
|
||||||
:class:`FunctionBuilder` type, on which wraps was built.
|
:class:`FunctionBuilder` type, on which wraps was built.
|
||||||
"""
|
"""
|
||||||
|
# TODO: maybe automatically use normal wraps in the very rare case
|
||||||
|
# that the signatures actually match and no adapter is needed.
|
||||||
if injected is None:
|
if injected is None:
|
||||||
injected = []
|
injected = []
|
||||||
elif isinstance(injected, basestring):
|
elif isinstance(injected, basestring):
|
||||||
|
|
Loading…
Reference in New Issue