Skip to content

Commit 96ece7a

Browse files
committed
Add type hints of test_gramian_accumulator
1 parent 16d2d48 commit 96ece7a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/unit/autogram/test_gramian_accumulator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
([[3], [7, 5, 8], [2, 3]], [0, 7, 1]),
1313
],
1414
)
15-
def test_adding_jacobians_one_by_one(shapes, number_of_jacobians):
15+
def test_adding_jacobians_one_by_one(shapes: list[list[int]], number_of_jacobians: list[int]):
1616
batch_size = 10
1717
gramian_accumulator = GramianAccumulator()
1818

@@ -37,13 +37,13 @@ def test_adding_jacobians_one_by_one(shapes, number_of_jacobians):
3737

3838

3939
@mark.parametrize(
40-
["shapes"],
40+
"shapes",
4141
[
42-
([[3, 4, 5], [7, 5]],),
43-
([[3], [7, 5, 8], [2, 3]],),
42+
[[3, 4, 5], [7, 5]],
43+
[[3], [7, 5, 8], [2, 3]],
4444
],
4545
)
46-
def test_adding_jacobians_lots_by_lots(shapes):
46+
def test_adding_jacobians_lots_by_lots(shapes: list[list[int]]):
4747
number_of_jacobians = 4
4848
batch_size = 10
4949
gramian_accumulator = GramianAccumulator()
@@ -80,7 +80,7 @@ def test_returns_none_if_no_jacobian_were_provided():
8080
([[3], [7, 5, 8], [2, 3]], [0, 7, 1]),
8181
],
8282
)
83-
def test_internal_dicts_are_cleaned(shapes, number_of_jacobians):
83+
def test_internal_dicts_are_cleaned(shapes: list[list[int]], number_of_jacobians: list[int]):
8484
batch_size = 10
8585
gramian_accumulator = GramianAccumulator()
8686

0 commit comments

Comments
 (0)