]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
work around Python 3.11 IntEnum issue; update FastIntFlag
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Nov 2022 23:41:54 +0000 (18:41 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Nov 2022 17:19:02 +0000 (12:19 -0500)
commite3a8d198917f4246365e09fa975d55c64082cd2e
tree19c47960c4ab212a59528e0f8dedf6d3a77b557f
parentebb54e80a5a52d0cce4cba1abc21c707a42c2c73
work around Python 3.11 IntEnum issue; update FastIntFlag

in [1], Python 3.11 seems to have changed the behavior of
IntEnum.  We didn't notice this because we have our own
workaround class already, but typing did.   Ensure we remain
compatible with IntFlag.

This change also modifies FastIntFlag to no longer use
global symbols; this is unnecessary as we assign FastIntFlag
members explicitly.  Use of ``symbol()`` should probably
be phased out.

[1] https://github.com/python/cpython/issues/99304
Fixes: #8783
Change-Id: I8ae2e871ff1467ae5ca1f63e66b5dae45d4a6c93
doc/build/changelog/unreleased_20/8783.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/collections.py
lib/sqlalchemy/util/langhelpers.py
test/base/test_utils.py