2
class ItemForwardingComponent:
3
def __init__(self, fwdTo):
4
if hasattr(fwdTo, '__checkstate__'):
5
raise RuntimeError("USE REFERENCETO YOU WORHTLESS IDIOT!!")
8
def __getattr__(self, attr):
13
return getattr(self.fwdTo.getItem(), attr)(*a, **kw)
16
def __eq__(self, other):
17
if not isinstance(other, ItemForwardingComponent):
19
return self.fwdTo == other.fwdTo