ktongue's picture
download
raw
407 Bytes
from typing import Callable
def is_documented_by(function_with_docstring: Callable):
"""Decorator to share docstrings across common functions.
Args:
function_with_docstring (`Callable`): Name of the function with the docstring.
"""
def wrapper(target_function):
target_function.__doc__ = function_with_docstring.__doc__
return target_function
return wrapper

Xet Storage Details

Size:
407 Bytes
·
Xet hash:
e701a3d74e7d80555633c4cefd2fc3a98e81a304f8387a610f5b9163a96408c8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.