MCPcopy Create free account
hub / github.com/SooLab/CGFormer / docstring_decorator

Function docstring_decorator

bert/file_utils.py:156–158  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

154
155def add_start_docstrings(*docstr):
156 def docstring_decorator(fn):
157 fn.__doc__ = "".join(docstr) + (fn.__doc__ if fn.__doc__ is not None else "")
158 return fn
159
160 return docstring_decorator
161

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected