There seem to be two places where you can put docstrings for a class:
- Right under the class definition:
class MyClass(object):
""" Summary of MyClass
Body
...
"""
- Right under the
__init__constructor:
...
def __init__(self, arg1, arg2):
""" Summary of MyClass
Body
...
"""
Which is preferred? Or is it okay to have both?