class MyClass: """This is the class docstring. Attributes: attr: Docstring from class """ attr = 1 """Docstring from attr"""