Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 787f308

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-6
lines changed

‎lib/matplotlib/tests/test_cbook.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_cbook.py
+4-6Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.