]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Remove internal use of string attr in loader option
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Mar 2021 02:56:36 +0000 (22:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Mar 2021 17:45:52 +0000 (13:45 -0400)
commit9ec860e7a5c944799f9ef4de9069d707cfc1ed27
treed02f035c3f2210e4760d39b73db738f993960e16
parent2b7518ad7b4c4bb4ae6bd07221d349ac1a6af9a5
Remove internal use of string attr in loader option

Fixed issue where a "removed in 2.0" warning were generated internally by
the relationship loader mechanics.

This changeset started the effort of converting all string usage
in the test suite, however this is a much longer job as the
use of strings in loader options is widespread.  In particular
I'm not totally comfortable with strings not being accepted
in obvious spots like Load(User).load_only("x", "y", "z"), which
points to a new string expecting functionality that's not
what's there now.  However at the moment it seems like we need
to continue removing all support for strings and then figure out
"immediate strings from an explicit class" later.

Fixes: #6115
Change-Id: I6b314d135d2bc049fd66500914b772c1fe60b5b3
doc/build/changelog/unreleased_14/6115.rst [new file with mode: 0644]
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py
lib/sqlalchemy/testing/assertions.py
test/orm/test_deprecations.py
test/orm/test_eager_relations.py
test/orm/test_lazy_relations.py
test/orm/test_options.py