]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
dont warn for dictionary passed positionally
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Jul 2021 15:03:08 +0000 (11:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Jul 2021 20:00:12 +0000 (16:00 -0400)
commit27ec4929198807702190b96d3c00d0291976f49e
tree210716d7c12dcd4e3c17376730e4e6b2794fc792
parente72106d1499ec628487f7e428e7c49acdd4eb9c0
dont warn for dictionary passed positionally

Fixed issue where use of the :paramref:`_sql.case.whens` parameter passing
a dictionary positionally and not as a keyword argument would emit a 2.0
deprecation warning, referring to the deprecation of passing a list
positionally. The dictionary format of "whens", passed positionally, is
still supported and was accidentally marked as deprecated.

Removes warning filter for case statement.

Fixes: #6786
Change-Id: I8efd1882563773bec89ae5e34f0dfede77fc4683
12 files changed:
doc/build/changelog/unreleased_14/6786.rst [new file with mode: 0644]
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/testing/suite/test_select.py
lib/sqlalchemy/testing/suite/test_types.py
lib/sqlalchemy/testing/warnings.py
test/orm/test_merge.py
test/orm/test_query.py
test/orm/test_update_delete.py
test/sql/test_case_statement.py
test/sql/test_deprecations.py
test/sql/test_selectable.py