]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed ``scalar_one`` usage after ``unique``.
authorFederico Caselli <cfederico87@gmail.com>
Sat, 17 Apr 2021 09:56:51 +0000 (11:56 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 17 Apr 2021 17:18:32 +0000 (13:18 -0400)
commitb12438aa61058b993be8ebcc80fa6df1401f4664
tree658d1ec5e70d9d6aaa466a8e86bad745a5ba9920
parente2091644678f0d5887d200c32aceca52299a6ca4
Fixed ``scalar_one`` usage after ``unique``.

Fixed an issue that prevented using ``scalar_one`` or
``scalar_one_or_none()`` after a call to ``unique``.

Additionally includes some clarifications in result.py
and also removes pep-484 annotations for now as these
are duplicate on top of sqlalchemy2-stubs.

Fixes: #6299
Change-Id: Ia04f3d078c7a4f0d8488745e43d2fd63b60de9a0
doc/build/changelog/unreleased_14/6299.rst [new file with mode: 0644]
lib/sqlalchemy/engine/result.py
test/base/test_result.py
test/orm/test_relationship_criteria.py