your question is getting no answers because it is vague and doesn't
provide any code.   what's a "description"?   you mean a Python
docstring ?   Python attributes don't have a __doc__ normally, if you
mean the "doc" parameter, just make a separate property:

class A(Base):
    __tablename__ = 'a'

    id = Column(Integer, primary_key=True)

    data = column_property(Column(String), doc="the data")


class B(A):
    __tablename__ = 'b'

    id = Column(ForeignKey('a.id'), primary_key=True)

    data = column_property(A.data, doc="B's data")




On Fri, Jun 29, 2018 at 8:41 AM, Marcus Mann <[email protected]> wrote:
> https://stackoverflow.com/questions/51046900/how-to-access-override-defaults-on-parents-attribute-in-sql-alchemy
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full
> description.
> ---
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to