Skip to content

Commit 2d1f690

Browse files
rossbarlarsoner
authored andcommitted
MAINT: Py3k rm explicit inherit from object.
1 parent 5af61ae commit 2d1f690

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

numpydoc/tests/test_docscrape.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def test_section_twice():
278278
assert_raises(ValueError, NumpyDocString, doc_text)
279279

280280
# if we have a numpydoc object, we know where the error came from
281-
class Dummy(object):
281+
class Dummy:
282282
"""
283283
Dummy class.
284284
@@ -817,7 +817,7 @@ def test_see_also_parse_error():
817817

818818

819819
def test_see_also_print():
820-
class Dummy(object):
820+
class Dummy:
821821
"""
822822
See Also
823823
--------
@@ -858,7 +858,7 @@ def test_unknown_section():
858858
This should be ignored and warned about
859859
"""
860860

861-
class BadSection(object):
861+
class BadSection:
862862
"""Class with bad section.
863863
864864
Nope
@@ -995,7 +995,7 @@ def test_use_blockquotes():
995995

996996
def test_class_members():
997997

998-
class Dummy(object):
998+
class Dummy:
999999
"""
10001000
Dummy class.
10011001
@@ -1011,7 +1011,7 @@ def spammity(self):
10111011
"""Spammity index"""
10121012
return 0.95
10131013

1014-
class Ignorable(object):
1014+
class Ignorable:
10151015
"""local class, to be ignored"""
10161016
pass
10171017

@@ -1327,7 +1327,7 @@ def test_templated_sections():
13271327
def test_nonstandard_property():
13281328
# test discovery of a property that does not satisfy isinstace(.., property)
13291329

1330-
class SpecialProperty(object):
1330+
class SpecialProperty:
13311331

13321332
def __init__(self, axis=0, doc=""):
13331333
self.axis = axis

numpydoc/tests/tinybuild/numpydoc_test_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
__all__ = ['MyClass', 'my_function']
1919

2020

21-
class MyClass(object):
21+
class MyClass:
2222
"""A class.
2323
2424
Reference [2]_

0 commit comments

Comments
 (0)