Skip to content

"__getattribute__" undefined in superclass #2581

@z33ky

Description

@z33ky
class Foo():
    def __getattribute__(self, key) -> None:
        return super().__getattribute__(key)  # error: "__getattribute__" undefined in superclass

I guess this is caused by object not being modeled to have __getattribute__:

class Foo():
    def __getattribute__(self, key) -> None:
        return object.__getattribute__(self, key)  # error: "object" has no attribute "__getattribute__"

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