]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Honor hybrid property / method docstrings
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 10 Apr 2016 18:56:01 +0000 (14:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Apr 2016 16:55:48 +0000 (12:55 -0400)
commit243b222a232da0da0ac42386f3f38364750b1fcc
treeaf8870e5f7d8ba2b9eec6897e369b7febfd7e381
parent35e93db7ffb5806df22e997fde1f966fa8c453b0
Honor hybrid property / method docstrings

The docstring specified on a hybrid property or method is now honored
at the class level, allowing it to work with tools like Sphinx
autodoc.  The mechanics here necessarily involve some wrapping of
expressions to occur for hybrid properties, which may cause them
to appear differently using introspection.

Fixes: #3653
Change-Id: I02549977fe8b2a051802eed7b00cc532fbc214e3
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/239
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/ext/hybrid.py
test/ext/test_hybrid.py
test/orm/test_utils.py