]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Use field_specifiers instead of deprecated field_descriptors
authorFederico Caselli <cfederico87@gmail.com>
Sun, 8 Jan 2023 09:55:22 +0000 (10:55 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Sun, 8 Jan 2023 09:55:41 +0000 (10:55 +0100)
The Data Class Transforms argument ``field_descriptors`` was renamed
to ``field_specifiers`` in the accepted version of PEP 681.

Fixes: #9067
Change-Id: Ic13ea93c157325c3b60e65f328a364da68ea1c46

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

diff --git a/doc/build/changelog/unreleased_20/9067.rst b/doc/build/changelog/unreleased_20/9067.rst
new file mode 100644 (file)
index 0000000..3126766
--- /dev/null
@@ -0,0 +1,6 @@
+.. change::
+    :tags: bug, typing
+    :tickets: 9067
+
+    The Data Class Transforms argument ``field_descriptors`` was renamed
+    to ``field_specifiers`` in the accepted version of PEP 681.
index f965b2616a28ee0f8e31e3289cdaa36fd6a9f34e..b65f5561877be9d4c82e04d6602e8428f0c4ab81 100644 (file)
@@ -144,7 +144,7 @@ class DeclarativeAttributeIntercept(
 
 
 @compat_typing.dataclass_transform(
-    field_descriptors=(
+    field_specifiers=(
         MappedColumn[Any],
         RelationshipProperty[Any],
         Composite[Any],
@@ -1328,7 +1328,7 @@ class registry:
         return metaclass(name, bases, class_dict)
 
     @compat_typing.dataclass_transform(
-        field_descriptors=(
+        field_specifiers=(
             MappedColumn[Any],
             RelationshipProperty[Any],
             Composite[Any],