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