

def attach(self):
    cls = type(self)
    self.from_entity.relates_to[cls].add(self)
    self.to_entity.related_to[cls].add(cls)

dataset/ETHPy150Open eevee/flax/flax/relation.py Relation.attach/VarMisuse@42/48 `self`->`cls`