diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-16 10:31:39 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-01-16 14:23:49 -0500 |
commit | 046272e06aa3284a87e0dd1f90d2242fb434de10 (patch) | |
tree | 8a6ea002b34241c4b24355107361aef8590472bc /lib/sqlalchemy/util/tool_support.py | |
parent | 6da2f72b1144738ddae23e7fd882a8cd79ea1c60 (diff) | |
download | sqlalchemy-046272e06aa3284a87e0dd1f90d2242fb434de10.tar.gz |
dont assume copy_with() on builtins list, dict, etc; improve error msg.
Fixed issue where using an ``Annotated`` type in the
``type_annotation_map`` which itself contained a plain container type (e.g.
``list``, ``dict``) generic type as the target type would produce an
internal error where the ORM were trying to interpret the ``Annotated``
instance.
Added an error message when a :func:`_orm.relationship` is mapped against
an abstract container type, such as ``Mapped[Sequence[B]]``, without
providing the :paramref:`_orm.relationship.container_class` parameter which
is necessary when the type is abstract. Previously the the abstract
container would attempt to be instantiated and fail.
Fixes: #9099
Fixes: #9100
Change-Id: I18aa6abd5451c5ac75a9caed8441ff0cd8f44589
Diffstat (limited to 'lib/sqlalchemy/util/tool_support.py')
0 files changed, 0 insertions, 0 deletions