Skip to content

Commit

Permalink
refactor: remove useless object inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Nov 16, 2024
1 parent bb89911 commit 9c70110
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion xlsxwriter/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from .exceptions import EmptyChartSeries


class Packager(object):
class Packager():
"""
A class for writing the Excel XLSX Packager file.
Expand Down
2 changes: 1 addition & 1 deletion xlsxwriter/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from warnings import warn


class Shape(object):
class Shape():
"""
A class for to represent Excel XLSX shape objects.
Expand Down
2 changes: 1 addition & 1 deletion xlsxwriter/sharedstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _write_si(self, string):


# A metadata class to store Excel strings between worksheets.
class SharedStringTable(object):
class SharedStringTable():
"""
A class to track Excel shared strings between worksheets.
Expand Down
2 changes: 1 addition & 1 deletion xlsxwriter/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from io import StringIO


class Theme(object):
class Theme():
"""
A class for writing the Excel XLSX Theme file.
Expand Down
4 changes: 2 additions & 2 deletions xlsxwriter/workbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ def _write_defined_name(self, defined_name):


# A metadata class to share data between worksheets.
class WorksheetMeta(object):
class WorksheetMeta():
"""
A class to track worksheets data such as the active sheet and the
first sheet.
Expand All @@ -1782,7 +1782,7 @@ def __init__(self):


# A helper class to share embedded images between worksheets.
class EmbeddedImages(object):
class EmbeddedImages():
"""
A class to track duplicate embedded images between worksheets.
Expand Down
2 changes: 1 addition & 1 deletion xlsxwriter/xmlwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
xml_escapes = re.compile('["&<>\n]')


class XMLwriter(object):
class XMLwriter():
"""
Simple XML writer class.
Expand Down

0 comments on commit 9c70110

Please sign in to comment.