From a5c95ccfbf64559f8d81a351d8c0a5ba94312851 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 13 Mar 2024 20:17:03 -0400 Subject: [PATCH] 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. --- lib/matplotlib/tests/test_cbook.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/matplotlib/tests/test_cbook.py b/lib/matplotlib/tests/test_cbook.py index 38fa23acd4bf..938655507c2f 100644 --- a/lib/matplotlib/tests/test_cbook.py +++ b/lib/matplotlib/tests/test_cbook.py @@ -943,9 +943,8 @@ def test_auto_format_str(fmt, value, result): def test_unpack_to_numpy_from_torch(): - """Test that torch tensors are converted to numpy arrays. - We don't want to create a dependency on torch in the test suite, so we mock it. - """ + # Test that torch tensors are converted to NumPy arrays. + # We don't want to create a dependency on torch in the test suite, so we mock it. class Tensor: def __init__(self, data): self.data = data @@ -963,9 +962,8 @@ def __array__(self): def test_unpack_to_numpy_from_jax(): - """Test that jax arrays are converted to numpy arrays. - We don't want to create a dependency on jax in the test suite, so we mock it. - """ + # Test that jax arrays are converted to NumPy arrays. + # We don't want to create a dependency on jax in the test suite, so we mock it. class Array: def __init__(self, data): self.data = data