Skip to content

Commit

Permalink
Remove inheritance from object
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef-Friedrich committed Dec 30, 2023
1 parent fac09f5 commit f6e137a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions mscxyz/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def export_to_dict(obj, fields):
return out


class MetaTag(object):
class MetaTag:

"""The available metaTag fields are:
Expand Down Expand Up @@ -148,7 +148,7 @@ def clean(self):
setattr(self, field, "")


class Vbox(object):
class Vbox:
"""The first vertical box of a score.
Available fields:
Expand Down Expand Up @@ -299,7 +299,7 @@ def lyricist(self, value):
self.vbox.Lyricist = self.metatag.lyricist = value


class InterfaceReadWrite(object):
class InterfaceReadWrite:
objects = ("metatag", "vbox", "combined")

def __init__(self, xml_root):
Expand Down Expand Up @@ -347,7 +347,7 @@ def __setattr__(self, field, value):
return setattr(obj, parts["field"], value)


class InterfaceReadOnly(object):
class InterfaceReadOnly:
fields = [
"readonly_abspath",
"readonly_basename",
Expand Down Expand Up @@ -390,7 +390,7 @@ def readonly_relpath_backup(self):
return self.xml_tree.relpath_backup


class Interface(object):
class Interface:
def __init__(self, tree):
self.xml_tree = tree
self.read_only = InterfaceReadOnly(tree)
Expand Down
2 changes: 1 addition & 1 deletion mscxyz/score_file_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def list_zero_alphabet() -> List[str]:
###############################################################################


class MscoreFile(object):
class MscoreFile:
"""This class holds basic file properties of the MuseScore score file.
:param relpath: The relative (or absolute) path of a MuseScore
Expand Down

0 comments on commit f6e137a

Please sign in to comment.