From d2050fcb38a00944196740e82abf3e6ef227d6c6 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 18 Aug 2021 12:05:27 -0400 Subject: [PATCH] changelog updates Change-Id: I7c9a6abb85206c56423cfe70d807fc81ae89117e --- doc/build/changelog/unreleased_14/6804.rst | 10 +++++++--- doc/build/changelog/unreleased_14/6889.rst | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/doc/build/changelog/unreleased_14/6804.rst b/doc/build/changelog/unreleased_14/6804.rst index 92c41d6e31..389da2c85a 100644 --- a/doc/build/changelog/unreleased_14/6804.rst +++ b/doc/build/changelog/unreleased_14/6804.rst @@ -1,6 +1,10 @@ .. change:: - :tags: change + :tags: usecase, mypy :tickets: 6804, 6759 - Add basic support for generic classes without requiring - ``TYPE_CHECKING``. + Added support for SQLAlchemy classes to be defined in user code using + "generic class" syntax as defined by ``sqlalchemy2-stubs``, e.g. + ``Column[String]``, without the need for qualifying these constructs within + a ``TYPE_CHECKING`` block by implementing the Python special method + ``__class_getitem__()``, which allows this syntax to pass without error at + runtime. diff --git a/doc/build/changelog/unreleased_14/6889.rst b/doc/build/changelog/unreleased_14/6889.rst index 495cea22bb..fe3c240502 100644 --- a/doc/build/changelog/unreleased_14/6889.rst +++ b/doc/build/changelog/unreleased_14/6889.rst @@ -20,7 +20,7 @@ :tags: bug, orm :tickets: 6889 - Fixed an issue where the :class:`_orm.Bundle` construct would not create - proper cache keys, leading to inefficient use of the query cache. This - had some impact on the "selectinload" strategy and was identified as - part of :ticket:`6889`. + Fixed an issue where the :class:`_orm.Bundle` construct would not create + proper cache keys, leading to inefficient use of the query cache. This + had some impact on the "selectinload" strategy and was identified as + part of :ticket:`6889`. -- 2.47.2