diff options
author | James Addison <james@reciperadar.com> | 2023-04-26 16:29:53 -0400 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2023-04-26 22:32:02 +0200 |
commit | abd175bf86b1091fe444b91c4f98dc9ea97ff723 (patch) | |
tree | 6b5a7bf7a8d7133351acecad9c9a9083b839c3ba /alembic/op.pyi | |
parent | 84462eee9b742e58e0f1937f17820e946508b4e3 (diff) | |
download | alembic-abd175bf86b1091fe444b91c4f98dc9ea97ff723.tar.gz |
Followup / fixup: apply 'black' code formatting to a couple of missed docstrings
### Description
Follow-up / completion of #1220. That change updated a number of docstrings within the codebase to use standardised `black` code formatting, but a couple of locations had been missed.
### Checklist
This pull request is:
- [x] A documentation / typographical error fix
- Good to go, no issue or tests are needed
Closes: #1228
Pull-request: https://github.com/sqlalchemy/alembic/pull/1228
Pull-request-sha: f5696b9ca34998e22af5705434ed2393d86e82c0
Change-Id: I5d935b036d6f4e11eb5c229f9982db587d67ae24
Diffstat (limited to 'alembic/op.pyi')
-rw-r--r-- | alembic/op.pyi | 11 |
1 files changed, 5 insertions, 6 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 |