Skip to content

Commit e1c970d

Browse files
committed
MAINT: cleanup remnant of Python 2 support (classes do not need to inherit from object)
1 parent 6e8523e commit e1c970d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

larray_editor/arrayadapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_adapter(data, bg_value):
3232
return adapter_cls(data, bg_value)
3333

3434

35-
class AbstractAdapter(object):
35+
class AbstractAdapter:
3636
def __init__(self, data, bg_value):
3737
self.data = data
3838
self.bg_value = bg_value

larray_editor/combo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from qtpy.QtCore import QPoint
33

44

5-
class StandardItemModelIterator(object):
5+
class StandardItemModelIterator:
66
def __init__(self, model):
77
self.model = model
88
self.pos = 0

larray_editor/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from larray_editor.utils import logger
55

66

7-
class ArrayValueChange(object):
7+
class ArrayValueChange:
88
"""
99
Class representing the change of one value of an array.
1010

larray_editor/traceback_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# simplification thanks to only supporting the options we need) are:
1111
# * locals are stored as-is in the FrameSummary instead of as a dict of repr.
1212
# * globals are stored in the FrameSummary in addition to locals
13-
class FrameSummary(object):
13+
class FrameSummary:
1414
"""A single frame from a traceback.
1515
1616
Attributes

larray_editor/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_idx_rect(index_list):
213213
return min(rows), max(rows), min(cols), max(cols)
214214

215215

216-
class IconManager(object):
216+
class IconManager:
217217
_icons = {'larray': 'larray.ico'}
218218
_icon_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'images')
219219

@@ -232,7 +232,7 @@ def icon(self, ref):
232232
ima = IconManager()
233233

234234

235-
class LinearGradient(object):
235+
class LinearGradient:
236236
"""
237237
I cannot believe I had to roll my own class for this when PyQt already
238238
contains QLinearGradient... but you cannot get intermediate values out of
@@ -311,7 +311,7 @@ def show_figure(parent, figure):
311311
main.show()
312312

313313

314-
class Axis(object):
314+
class Axis:
315315
"""
316316
Represents an Axis.
317317
@@ -576,7 +576,7 @@ def get_sample_indices(data, maxsize):
576576
return np.unravel_index(flat_indices, data.shape)
577577

578578

579-
class RecentlyUsedList(object):
579+
class RecentlyUsedList:
580580
MAX_RECENT_FILES = 10
581581

582582
def __init__(self, list_name, parent_action=None, triggered=None):

0 commit comments

Comments
 (0)