Ensure all of the legacy class names like attribute_mapped_collection
are imported by *, instead of only importing the old names partially.
Also remove repeated items from __all__ because these are redundant.
Fixes: #11435
--- /dev/null
+.. change::
+ :tags: bug
+ :tickets: 11435
+
+ Fixed some of the legacy class names not imported by
+ ``sqlalalchemy.orm.collections.*``.
"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()