Skip to content

Inheritance of properties or methods is not analyzed.Β #19

@JCHacking

Description

@JCHacking

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions