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.