diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-03-28 15:52:27 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-03-28 15:58:35 -0400 |
| commit | c90396fbe7424c481f8f4ee18b6cedd1fa09c711 (patch) | |
| tree | 6abf98023e15fb2ba81c3af3ccb5583de5b94919 /lib/sqlalchemy/sql | |
| parent | bbd6420b39edb24481f171b8d0081149dd2e5ba7 (diff) | |
| download | sqlalchemy-c90396fbe7424c481f8f4ee18b6cedd1fa09c711.tar.gz | |
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
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/coercions.py | 11 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/schema.py | 12 |
2 files changed, 8 insertions, 15 deletions
diff --git a/lib/sqlalchemy/sql/coercions.py b/lib/sqlalchemy/sql/coercions.py index ea17b8e03..35cd33a18 100644 --- a/lib/sqlalchemy/sql/coercions.py +++ b/lib/sqlalchemy/sql/coercions.py @@ -64,13 +64,10 @@ def _is_literal(element): """ - return ( - not isinstance( - element, - (Visitable, schema.SchemaEventTarget), - ) - and not hasattr(element, "__clause_element__") - ) + return not isinstance( + element, + (Visitable, schema.SchemaEventTarget), + ) and not hasattr(element, "__clause_element__") def _deep_is_literal(element): 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: |
