summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Addison <james@reciperadar.com>2023-04-26 11:20:53 +0100
committerJames Addison <james@reciperadar.com>2023-04-26 11:26:54 +0100
commitebe5f59677c641f404299cf4f3c2aa9fcc6c5c16 (patch)
treeadeab1f9fba4c71331a42428330d511977fb1ac9
parentd2d3c7283095e1dc8157898eb34db2945fda4fcd (diff)
downloadalembic-ebe5f59677c641f404299cf4f3c2aa9fcc6c5c16.tar.gz
Fixup: consistency: re-apply black code formatting to Operation.create_primary_key snippet, allowing it to fit on a single line
Follows-on-from commit 84462eee9b742e58e0f1937f17820e946508b4e3.
-rw-r--r--alembic/operations/ops.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py
index 8dccc42..f95ab70 100644
--- a/alembic/operations/ops.py
+++ b/alembic/operations/ops.py
@@ -308,9 +308,7 @@ class CreatePrimaryKeyOp(AddConstraintOp):
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