I want to document something like this with numpy style docstring.
class X(object):
""" X
Marble Counter
Parameters
----------
n_marbles : int
an indicator of degree of madness
Attributes
----------
n_marbles : int
an indicator of degree of madness
"""
def __init__(n_marbles):
self.n_marbles = n_marbles
The attribute and parameters are the same. Can/should I avoid repeating?