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 /examples | |
| 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 'examples')
| -rw-r--r-- | examples/versioned_rows/versioned_rows_w_versionid.py | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/examples/versioned_rows/versioned_rows_w_versionid.py b/examples/versioned_rows/versioned_rows_w_versionid.py index 39cbaf1aa..fcf808281 100644 --- a/examples/versioned_rows/versioned_rows_w_versionid.py +++ b/examples/versioned_rows/versioned_rows_w_versionid.py @@ -101,17 +101,14 @@ session.commit() e1.data = "e2" session.commit() -assert ( - session.query( - Example.id, - Example.version_id, - Example.is_current_version, - Example.calc_is_current_version, - Example.data, - ) - .order_by(Example.id, Example.version_id) - .all() - == ([(1, 1, False, False, "e1"), (1, 2, True, True, "e2")]) +assert session.query( + Example.id, + Example.version_id, + Example.is_current_version, + Example.calc_is_current_version, + Example.data, +).order_by(Example.id, Example.version_id).all() == ( + [(1, 1, False, False, "e1"), (1, 2, True, True, "e2")] ) # example 2, versioning with a parent @@ -162,15 +159,12 @@ session.commit() assert p1.child_id == 1 assert p1.child.version_id == 2 -assert ( - session.query( - Child.id, - Child.version_id, - Child.is_current_version, - Child.calc_is_current_version, - Child.data, - ) - .order_by(Child.id, Child.version_id) - .all() - == ([(1, 1, False, False, "c1"), (1, 2, True, True, "c2")]) +assert session.query( + Child.id, + Child.version_id, + Child.is_current_version, + Child.calc_is_current_version, + Child.data, +).order_by(Child.id, Child.version_id).all() == ( + [(1, 1, False, False, "c1"), (1, 2, True, True, "c2")] ) |
