]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
repair mapper sort
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Jan 2022 14:31:42 +0000 (09:31 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Jan 2022 19:46:09 +0000 (14:46 -0500)
commit769dc1d2cb217c66918bec01718aa657a0239040
tree6e61ced520057bdfea5154b07277379b7de9077e
parent5677ea7f1b8de3cba5c8c0fbf70e3840a5a9889f
repair mapper sort

Fixed issue in :meth:`_orm.Session.bulk_save_mappings` where the sorting
that takes place when the ``preserve_order`` parameter is set to False
would sort partially on ``Mapper`` objects, which is rejected in Python
3.11.

Also uses typing_extensions for NotRequired as this symbol
does not seem to be in Python 3.11.0a4 yet.

For interim 3.11 support, adds the git main build of greenlet
for Python 3.11

Fixes: #7591
Change-Id: I24a62f2322ad7dac5d8e4a00853f8a9408877c9c
doc/build/changelog/unreleased_14/7591.rst [new file with mode: 0644]
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/util/typing.py
setup.cfg
tox.ini