8000 Fix new flake8 errors from old merge · matplotlib/matplotlib@a5c95cc · GitHub
[go: up one dir, main page]

Skip to content

Commit a5c95cc

Browse files
committed
Fix new flake8 errors from old merge
Some flake8-docstring options were changed between a PR being written and it gettig merge, so these errors were not evident.
1 parent e16967f commit a5c95cc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/matplotlib/tests/test_cbook.py

Lines changed: 4 additions & 6 deletions
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)
0