Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AboutAttributeAccess: super would resolve to object #250

Open
programmer-ke opened this issue Apr 7, 2022 · 0 comments
Open

AboutAttributeAccess: super would resolve to object #250

programmer-ke opened this issue Apr 7, 2022 · 0 comments

Comments

@programmer-ke
Copy link

I was confused by the comment below because it looks to me like super() would resolve the the parent class which is object.

# Using 'object' directly because using super() here will also
# trigger a __getattribute__() call.
return object.__getattribute__(self, attr_name)

I substituted the line with return super().__getattribute__(attr_name) and it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant