def templated_docstring(**docs):
 def decorator(f):
  f.__doc__ = format_docstring(f.__name__, f.__doc__, docs)
  return f
 return decorator

def templated_docstring ( ** docs ) : def decorator ( f ) : f . __doc__ = format_docstring ( f . __name__ , f . __doc__ , docs ) return f return decorator
decorator allowing the use of templated docstrings .