I would like to reuse a docstring that is used for the same function across multiple classes.
For example
class square:
def getArea(L,W):
""" [description]
L (int) ...
W (int) ...
return (int) area of shape
"""
return L*W
class rectangle:
def getArea(L,W):
""" use docstring from above"""
return L*W
Is there any way to use the same docstring across multiple functions? This is a simple example but some functions have 10 different parameters and being able to use the same docstring will ensure consistency.