From c90396fbe7424c481f8f4ee18b6cedd1fa09c711 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 28 Mar 2022 15:52:27 -0400 Subject: bump black to 22.3.0 both black and click were released in the past few hours, and black 21.5b1 seems to suddenly be failing on a missing symbol from click. just update to the latest Change-Id: Idf76732479a264f7f2245699a6bdaff018e3a123 --- lib/sqlalchemy/sql/schema.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'lib/sqlalchemy/sql/schema.py') diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 9924e632b..7206cfdba 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -4329,14 +4329,10 @@ class PrimaryKeyConstraint(ColumnCollectionConstraint): if col.autoincrement is True: _validate_autoinc(col, True) return col - elif ( - col.autoincrement - in ( - "auto", - "ignore_fk", - ) - and _validate_autoinc(col, False) - ): + elif col.autoincrement in ( + "auto", + "ignore_fk", + ) and _validate_autoinc(col, False): return col else: -- cgit v1.2.1