Skip to content

Commit

Permalink
Remove explicit inheritance from 'object'
Browse files Browse the repository at this point in the history
No longer needed in Python 3

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
  • Loading branch information
lauft committed Nov 11, 2023
1 parent 31dfd57 commit 6f69991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/holidata/emitters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from holidata.plugin import PluginMount


class Emitter(object, metaclass=PluginMount):
class Emitter(metaclass=PluginMount):
type = None

def __init__(self):
Expand Down
6 changes: 3 additions & 3 deletions src/holidata/holidays/holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from holidata.utils import SmartDayArrow, month_reference, easter


class Holiday(object):
class Holiday:
"""
A sheer container for one holiday.
"""
Expand All @@ -28,7 +28,7 @@ def as_dict(self):
}


class Country(object, metaclass=PluginMount):
class Country(metaclass=PluginMount):
"""
Represents holidays of a given country
"""
Expand Down Expand Up @@ -64,7 +64,7 @@ def validate_language_or_get_default(self, lang_id):
return lang_id


class Locale(object, metaclass=PluginMount):
class Locale(metaclass=PluginMount):
"""
Represents holidays in a given locale.
"""
Expand Down

0 comments on commit 6f69991

Please sign in to comment.