add a wraps TODO

This commit is contained in:
Mahmoud Hashemi 2016-06-14 04:30:49 -07:00
parent 5ada677d80
commit a1f132039d
1 changed files with 2 additions and 0 deletions

View File

@ -268,6 +268,8 @@ def wraps(func, injected=None, **kw):
For more in-depth wrapping of functions, see the
: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:
injected = []
elif isinstance(injected, basestring):