from dataclasses import dataclass

@dataclass
class MyClass:
    """
    Class description

    Parameters:
        bar: attribute description

    """
    attr1 = 3

    def __init__(self, bar):
        pass