Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aurivus-ph committed May 2, 2023
1 parent ed29bda commit fe4543b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion numpy/lib/recfunctions.py
Expand Up @@ -1016,7 +1016,6 @@ def structured_to_unstructured(arr, dtype=None, copy=False, casting='unsafe'):
'itemsize': arr.dtype.itemsize})
arr = arr.view(flattened_fields)


# we only allow a few types to be unstructured by manipulating the
# strides, because we know it won't work with, for example, np.matrix nor
# np.ma.MaskedArray.
Expand Down
1 change: 0 additions & 1 deletion numpy/lib/tests/test_recfunctions.py
Expand Up @@ -345,7 +345,6 @@ def inspect(dt, dtype=None):
assert_raises(NotImplementedError, unstructured_to_structured,
np.zeros((3,0), dtype=np.int32))


# test supported ndarray subclasses
d_plain = np.array([(1, 2), (3, 4)], dtype=[('a', 'i4'), ('b', 'i4')])
dd_expected = structured_to_unstructured(d_plain, copy=True)
Expand Down

0 comments on commit fe4543b

Please sign in to comment.