From: James Addison Date: Wed, 26 Apr 2023 10:20:53 +0000 (+0100) Subject: Fixup: consistency: re-apply black code formatting to Operation.create_primary_key... X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=ebe5f59677c641f404299cf4f3c2aa9fcc6c5c16;p=thirdparty%2Fsqlalchemy%2Falembic.git 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. --- 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