Open
Description
Following code:
import attrs
def decorated(method):
def wrapped(self, *args, **kwargs):
return method(self, *args, **kwargs)
return wrapped
@attrs.define()
class A:
def f(self):
pass
@attrs.define()
class B(A):
@decorated
def f(self):
super().f()
B().f()
raises following error
TypeError: super(type, obj): obj must be an instance or subtype of type
If I use super(B, self)
, everything works just fine.