jdkandersson / flake8-docstrings-complete

Apache License 2.0
12 stars 3 forks source link

Inheritance of properties or methods is not analyzed. #19

Open JCHacking opened 1 year ago

JCHacking commented 1 year ago

If I have the following code in 2 different files: file1.py

class BaseClass(ABC):
    def __init__(self, name):
        self.name = name

file2.py

class ClassExample(BaseClass):
    """Class Exmaple.

    Attributes:
        name: Name
    """
    def __init__(self, name):
        super().__init__(name)

It gives error because it says that in ClassExample the property name does not exist. I imagine that this will also happen if you document methods in some way.