@declared_attr
    def addresses(cls):
        cls.Address = type(
            "%sAddress" % cls.__name__,
            (Address, Base,),
            dict(
                __tablename__="%s_address" %
                            cls.__tablename__,
                parent_id=Column(Integer,
                            ForeignKey(cls.__tablename__ % "%s.id")),
                parent=relationship(cls)
            )
        )
        return relationship(cls.Address)
dataset/ETHPy150Open zzzeek/sqlalchemy/examples/generic_associations/table_per_related.py/HasAddresses.addresses/swapped operands of `%`