]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Import all legacy classes by sqlalchemy.orm.collections.*
authorTakashi Kajinami <kajinamit@oss.nttdata.com>
Mon, 29 Jul 2024 16:01:04 +0000 (12:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jul 2024 16:08:03 +0000 (12:08 -0400)
Restored legacy class names removed from
``sqlalalchemy.orm.collections.*``, including
:class:`_orm.MappedCollection`, :func:`_orm.mapped_collection`,
:func:`_orm.column_mapped_collection`,
:func:`_orm.attribute_mapped_collection`. Pull request courtesy Takashi
Kajinami.

Fixes: #11435
Closes: #11432
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11432
Pull-request-sha: 66f20a8e2069f48665299d1ee220dfe57aedf79e

Change-Id: I05172669fc9a44e737b3714001d1317bbbf0012f

doc/build/changelog/unreleased_20/11435.rst [new file with mode: 0644]
lib/sqlalchemy/orm/collections.py

diff --git a/doc/build/changelog/unreleased_20/11435.rst b/doc/build/changelog/unreleased_20/11435.rst
new file mode 100644 (file)
index 0000000..8e9ac23
--- /dev/null
@@ -0,0 +1,13 @@
+.. change::
+    :tags: bug, general, regression
+    :tickets: 11435
+
+    Restored legacy class names removed from
+    ``sqlalalchemy.orm.collections.*``, including
+    :class:`_orm.MappedCollection`, :func:`_orm.mapped_collection`,
+    :func:`_orm.column_mapped_collection`,
+    :func:`_orm.attribute_mapped_collection`. Pull request courtesy Takashi
+    Kajinami.
+
+
+    .
index 394a4eaba548f807ed5ba1100c05981a20caed19..956cbd651ac0a5a12086b16e6219fab2981d4b75 100644 (file)
@@ -148,10 +148,12 @@ __all__ = [
     "keyfunc_mapping",
     "column_keyed_dict",
     "attribute_keyed_dict",
-    "column_keyed_dict",
-    "attribute_keyed_dict",
-    "MappedCollection",
     "KeyFuncDict",
+    # old names in < 2.0
+    "mapped_collection",
+    "column_mapped_collection",
+    "attribute_mapped_collection",
+    "MappedCollection",
 ]
 
 __instrumentation_mutex = threading.Lock()