Skip to content

Commit 787f308

Browse files
authored
Merge pull request #27918 from QuLogic/fix-docstrings
Fix new flake8 errors from old merge
2 parents e16967f + a5c95cc commit 787f308

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/matplotlib/tests/test_cbook.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -943,9 +943,8 @@ def test_auto_format_str(fmt, value, result):
943943

944944

945945
def test_unpack_to_numpy_from_torch():
946-
"""Test that torch tensors are converted to numpy arrays.
947-
We don't want to create a dependency on torch in the test suite, so we mock it.
948-
"""
946+
# Test that torch tensors are converted to NumPy arrays.
947+
# We don't want to create a dependency on torch in the test suite, so we mock it.
949948
class Tensor:
950949
def __init__(self, data):
951950
self.data = data
@@ -963,9 +962,8 @@ def __array__(self):
963962

964963

965964
def test_unpack_to_numpy_from_jax():
966-
"""Test that jax arrays are converted to numpy arrays.
967-
We don't want to create a dependency on jax in the test suite, so we mock it.
968-
"""
965+
# Test that jax arrays are converted to NumPy arrays.
966+
# We don't want to create a dependency on jax in the test suite, so we mock it.
969967
class Array:
970968
def __init__(self, data):
971969
self.data = data

0 commit comments

Comments
 (0)