]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add docstrings for parameter `dataclass_metadata` 12619/head
authorSigmund Lahn <s@lahn.no>
Fri, 23 May 2025 11:29:46 +0000 (13:29 +0200)
committerSigmund Lahn <s@lahn.no>
Fri, 23 May 2025 11:29:46 +0000 (13:29 +0200)
lib/sqlalchemy/orm/_orm_constructors.py

index b6f3e7d286cb3aaf0ccffed0fea9b29a9416f9ee..d6b5cdf396d4999139c1c9343de849ae75c0a841 100644 (file)
@@ -342,6 +342,10 @@ def mapped_column(
 
      .. versionadded:: 2.0.36
 
+    :param dataclass_metadata: Specific to
+     :ref:`orm_declarative_native_dataclasses`, supplies metadata
+     to be attached to the generated dataclass field.
+
     :param \**kw: All remaining keyword arguments are passed through to the
      constructor for the :class:`_schema.Column`.
 
@@ -592,6 +596,9 @@ def column_property(
 
      .. versionadded:: 2.0.36
 
+    :param dataclass_metadata: Specific to
+     :ref:`orm_declarative_native_dataclasses`, supplies metadata
+     to be attached to the generated dataclass field.
     """
     return MappedSQLExpression(
         column,
@@ -787,6 +794,10 @@ def composite(
      class.
 
      .. versionadded:: 2.0.36
+
+    :param dataclass_metadata: Specific to
+     :ref:`orm_declarative_native_dataclasses`, supplies metadata
+     to be attached to the generated dataclass field.
     """
     if __kw:
         raise _no_kw()
@@ -1873,6 +1884,10 @@ def relationship(
      class.
 
      .. versionadded:: 2.0.36
+
+    :param dataclass_metadata: Specific to
+     :ref:`orm_declarative_native_dataclasses`, supplies metadata
+     to be attached to the generated dataclass field.
     """
 
     return _RelationshipDeclared(