]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
changelog updates
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Aug 2021 16:05:27 +0000 (12:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Aug 2021 16:05:27 +0000 (12:05 -0400)
Change-Id: I7c9a6abb85206c56423cfe70d807fc81ae89117e

doc/build/changelog/unreleased_14/6804.rst
doc/build/changelog/unreleased_14/6889.rst

index 92c41d6e3121aabc5972f29835d337f0687a0788..389da2c85a2d48eb30cfee30bf5bf3d484344478 100644 (file)
@@ -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.
index 495cea22bb9ecfe78d3da262881f18a4ebbc2a35..fe3c240502dddfb6962fa13338a02fc2bd13e852 100644 (file)
@@ -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`.