Skip to content

Commit 1d56d38

Browse files
MAINT: apply ruff/pyupgrade rule UP004
UP004 Class inherits from `object`
1 parent 0bf9c46 commit 1d56d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/_core/tests/test_multiarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6886,7 +6886,7 @@ def test_huge_vectordot(self, dtype):
68866886

68876887
def test_dtype_discovery_fails(self):
68886888
# See gh-14247, error checking was missing for failed dtype discovery
6889-
class BadObject(object):
6889+
class BadObject:
68906890
def __array__(self, dtype=None, copy=None):
68916891
raise TypeError("just this tiny mint leaf")
68926892

@@ -8356,7 +8356,7 @@ def test_no_suboffsets(self):
83568356
np.frombuffer(buffer)
83578357

83588358

8359-
class TestArrayCreationCopyArgument(object):
8359+
class TestArrayCreationCopyArgument:
83608360

83618361
class RaiseOnBool:
83628362

0 commit comments

Comments
 (0)