Skip to content

Commit

Permalink
Remove redundant class object inheritance (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergBobrovsky committed Apr 9, 2023
1 parent a171f1f commit a5036cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions schedule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ class IntervalError(ScheduleValueError):
pass


class CancelJob(object):
class CancelJob:
"""
Can be returned from a job to unschedule itself.
"""

pass


class Scheduler(object):
class Scheduler:
"""
Objects instantiated by the :class:`Scheduler <Scheduler>` are
factories to create jobs, keep record of scheduled jobs and
Expand Down Expand Up @@ -205,7 +205,7 @@ def idle_seconds(self) -> Optional[float]:
return (self.next_run - datetime.datetime.now()).total_seconds()


class Job(object):
class Job:
"""
A periodic job as used by :class:`Scheduler`.
Expand Down
2 changes: 1 addition & 1 deletion test_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def make_mock_job(name=None):
return job


class mock_datetime(object):
class mock_datetime:
"""
Monkey-patch datetime for predictable results
"""
Expand Down

0 comments on commit a5036cf

Please sign in to comment.