summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2023-04-26 22:17:49 +0200
committerFederico Caselli <cfederico87@gmail.com>2023-04-26 22:17:55 +0200
commit329e1df276a071eca8986b92089fa59f3add1a36 (patch)
tree6b5a7bf7a8d7133351acecad9c9a9083b839c3ba
parentf5696b9ca34998e22af5705434ed2393d86e82c0 (diff)
downloadalembic-tmp.tar.gz
update stubs, move changelog to separate filetmp
Change-Id: I5ea33c4f7a35a57aab32e075e0b02b676cf03d79
-rw-r--r--alembic/op.pyi11
-rw-r--r--docs/build/changelog.rst6
-rw-r--r--docs/build/unreleased/1220.rst6
3 files changed, 11 insertions, 12 deletions
diff --git a/alembic/op.pyi b/alembic/op.pyi
index 229fff3..01edb61 100644
--- a/alembic/op.pyi
+++ b/alembic/op.pyi
@@ -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
diff --git a/docs/build/changelog.rst b/docs/build/changelog.rst
index f1be085..b62df7d 100644
--- a/docs/build/changelog.rst
+++ b/docs/build/changelog.rst
@@ -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
index 0000000..74ecaaf
--- /dev/null
+++ b/docs/build/unreleased/1220.rst
@@ -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.