the fix is https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-0ef2df514d4d40ea01d9b62a9c5fdae1 which was SQLAlchemy issue https://github.com/sqlalchemy/sqlalchemy/issues/4584 and in fact was raised regarding this exact code.
the fix is https:/ /docs.sqlalchem y.org/en/ 13/changelog/ changelog_ 13.html# change- 0ef2df514d4d40e a01d9b62a9c5fda e1 which was SQLAlchemy issue https:/ /github. com/sqlalchemy/ sqlalchemy/ issues/ 4584 and in fact was raised regarding this exact code.