From 329e1df276a071eca8986b92089fa59f3add1a36 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 26 Apr 2023 22:17:49 +0200 Subject: [PATCH] update stubs, move changelog to separate file Change-Id: I5ea33c4f7a35a57aab32e075e0b02b676cf03d79 --- alembic/op.pyi | 11 +++++------ docs/build/changelog.rst | 6 ------ docs/build/unreleased/1220.rst | 6 ++++++ 3 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 docs/build/unreleased/1220.rst diff --git a/alembic/op.pyi b/alembic/op.pyi index 229fff32..01edb611 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 f1be0851..b62df7dc 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 00000000..74ecaaf8 --- /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. -- 2.47.2