From ebe5f59677c641f404299cf4f3c2aa9fcc6c5c16 Mon Sep 17 00:00:00 2001 From: James Addison Date: Wed, 26 Apr 2023 11:20:53 +0100 Subject: [PATCH] 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. --- alembic/operations/ops.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py index 8dccc428..f95ab70f 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 -- 2.47.2