diff options
-rw-r--r-- | alembic/op.pyi | 11 | ||||
-rw-r--r-- | docs/build/changelog.rst | 6 | ||||
-rw-r--r-- | docs/build/unreleased/1220.rst | 6 |
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. |