]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
update stubs, move changelog to separate file tmp
authorFederico Caselli <cfederico87@gmail.com>
Wed, 26 Apr 2023 20:17:49 +0000 (22:17 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 26 Apr 2023 20:17:55 +0000 (22:17 +0200)
Change-Id: I5ea33c4f7a35a57aab32e075e0b02b676cf03d79

alembic/op.pyi
docs/build/changelog.rst
docs/build/unreleased/1220.rst [new file with mode: 0644]

index 229fff32c97eca064c80e4a3356a19158d8b4410..01edb611d6e8db0943c5ccb8e637282c4191dd95 100644 (file)
@@ -667,9 +667,7 @@ def create_primary_key(
 
         from alembic import op
 
-        op.create_primary_key(
-            "pk_my_table", "my_table", ["id", "version"]
-        )
+        op.create_primary_key("pk_my_table", "my_table", ["id", "version"])
 
     This internally generates a :class:`~sqlalchemy.schema.Table` object
     containing the necessary columns, then generates a new
@@ -729,9 +727,10 @@ def create_table(
         from sqlalchemy import Column, TIMESTAMP, func
 
         # specify "DEFAULT NOW" along with the "timestamp" column
-        op.create_table('account',
-            Column('id', INTEGER, primary_key=True),
-            Column('timestamp', TIMESTAMP, server_default=func.now())
+        op.create_table(
+            "account",
+            Column("id", INTEGER, primary_key=True),
+            Column("timestamp", TIMESTAMP, server_default=func.now()),
         )
 
     The function also returns a newly created
index f1be0851cc4e2230c31069382c678f94f7ce98c8..b62df7dc04949de2618a21b32bcc44f7e4262922 100644 (file)
@@ -7,12 +7,6 @@ Changelog
     :version: 1.10.5
     :include_notes_from: unreleased
 
-    .. change::
-        :tags: misc
-        :tickets: 1220
-
-        Update code snippets within docstrings to use ``black`` code formatting.
-
 .. changelog::
     :version: 1.10.4
     :released: April 24, 2023
diff --git a/docs/build/unreleased/1220.rst b/docs/build/unreleased/1220.rst
new file mode 100644 (file)
index 0000000..74ecaaf
--- /dev/null
@@ -0,0 +1,6 @@
+.. change::
+    :tags: misc
+    :tickets: 1220
+
+    Update code snippets within docstrings to use ``black`` code formatting.
+    Pull request courtesy of James Addison.