Skip to content

Commit 5e662f5

Browse files
committed
Fix docstring formatting
1 parent 61ff55b commit 5e662f5

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/unit/autojac/_transform/test_base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def check_keys(self, input_keys: set[Tensor]) -> set[Tensor]:
3535

3636
def test_composition_check_keys():
3737
"""
38-
Tests that `check_keys` works correctly for a composition of transforms: the inner
39-
transform's `output_keys` has to match with the outer transform's `required_keys`.
38+
Tests that `check_keys` works correctly for a composition of transforms: the inner transform's
39+
`output_keys` has to match with the outer transform's `required_keys`.
4040
"""
4141

4242
a1 = torch.randn([2])
@@ -54,8 +54,8 @@ def test_composition_check_keys():
5454

5555
def test_conjunct_check_keys_1():
5656
"""
57-
Tests that `check_keys` works correctly for a conjunction of transforms: all transforms
58-
should successfully check their keys.
57+
Tests that `check_keys` works correctly for a conjunction of transforms: all transforms should
58+
successfully check their keys.
5959
"""
6060

6161
a1 = torch.randn([2])
@@ -78,8 +78,8 @@ def test_conjunct_check_keys_1():
7878

7979
def test_conjunct_check_keys_2():
8080
"""
81-
Tests that `check_keys` works correctly for a conjunction of transforms: their
82-
`output_keys` should be disjoint.
81+
Tests that `check_keys` works correctly for a conjunction of transforms: their `output_keys`
82+
should be disjoint.
8383
"""
8484

8585
a1 = torch.randn([2])

tests/unit/autojac/_transform/test_interactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ def test_equivalence_jac_grads():
253253

254254
def test_stack_check_keys():
255255
"""
256-
Tests that the `check_keys` method works correctly for a stack of transforms: all of
257-
them should have the same `required_keys`.
256+
Tests that the `check_keys` method works correctly for a stack of transforms: all of them should
257+
have the same `required_keys`.
258258
"""
259259

260260
a = torch.tensor(1.0, requires_grad=True)

tests/unit/autojac/_transform/test_select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def test_conjunction_of_selects_is_select():
5858

5959
def test_check_keys():
6060
"""
61-
Tests that the `check_keys` method works correctly: the set of keys to select should
62-
be a subset of the set of required_keys.
61+
Tests that the `check_keys` method works correctly: the set of keys to select should be a subset
62+
of the set of required_keys.
6363
"""
6464

6565
key1 = torch.tensor([1.0])

0 commit comments

Comments
 (0)