Skip to content

Commit 9baa357

Browse files
committed
Format with black==24.4.2
1 parent 14f8970 commit 9baa357

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

tests/schema_simple.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ class SelectPK(dj.Lookup):
1818
id: int
1919
select : int
2020
"""
21-
contents = list(dict(id=i, select=i * j)
22-
for i in range(3) for j in range(4, 0, -1))
21+
contents = list(dict(id=i, select=i * j) for i in range(3) for j in range(4, 0, -1))
2322

2423

2524
class KeyPK(dj.Lookup):
2625
definition = """ # tests sql keyword escaping
2726
id : int
2827
key : int
2928
"""
30-
contents = list(dict(id=i, key=i + j)
31-
for i in range(3) for j in range(4, 0, -1))
29+
contents = list(dict(id=i, key=i + j) for i in range(3) for j in range(4, 0, -1))
3230

3331

3432
class IJ(dj.Lookup):

tests/test_relational_operand.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,5 +660,8 @@ def test_top_errors(self, schema_simp_pop):
660660
)
661661
assert "TypeError: Top limit must be an integer" == str(err3.exconly())
662662
assert "TypeError: Top order_by attributes must all be strings" == str(
663-
err4.exconly())
664-
assert "TypeError: The offset argument must be an integer" == str(err5.exconly())
663+
err4.exconly()
664+
)
665+
assert "TypeError: The offset argument must be an integer" == str(
666+
err5.exconly()
667+
)

0 commit comments

Comments
 (0)