]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Create public QueryPropertyDescriptor type for query_property
authorFederico Caselli <cfederico87@gmail.com>
Tue, 21 Feb 2023 20:05:25 +0000 (21:05 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Feb 2023 03:41:31 +0000 (22:41 -0500)
commit18db042ea74a0ff4e6f4bdecb66c9321a999c1a8
treee080f75703ce527872c88816865e78fc8818727c
parentfc57bafbae9d67b7ce95e26c939ca957c366b0f7
Create public QueryPropertyDescriptor type for query_property

Exported the type returned by :meth:`_orm.scoped_session.query_property`
using a new public type :class:`.orm.QueryPropertyDescriptor`.

Also stated ``scoped_session()`` from ``sqlalchemy.orm`` in the
documentation rather than from ``sqlalchemy.orm.scoping``.

Fixes: #9338
Change-Id: I77da54891860095edcb1f0625ead99fee89bd76f
doc/build/changelog/unreleased_20/9338.rst [new file with mode: 0644]
doc/build/orm/contextual.rst
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/scoping.py
test/ext/mypy/plain_files/sessionmakers.py
test/ext/mypy/plugin_files/issue_9156.py