Skip to content

Commit

Permalink
style(python): remove useless object inheritance
Browse files Browse the repository at this point in the history
Used when a class inherit from object, which under python3 is implicit,
hence can be safely removed from bases.
  • Loading branch information
diodonfrost committed Jun 13, 2023
1 parent 220ad12 commit 00fdb9d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package/scheduler/autoscaling_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .waiters import AwsWaiters


class AutoscalingScheduler(object):
class AutoscalingScheduler:
"""Abstract autoscaling scheduler in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/cloudwatch_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .filter_resources_by_tags import FilterByTags


class CloudWatchAlarmScheduler(object):
class CloudWatchAlarmScheduler:
"""Abstract Cloudwatch alarm scheduler in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/ecs_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .filter_resources_by_tags import FilterByTags


class EcsScheduler(object):
class EcsScheduler:
"""Abstract ECS Service scheduler in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/filter_resources_by_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import boto3


class FilterByTags(object):
class FilterByTags:
"""Abstract Filter aws resources by tags in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/instance_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .filter_resources_by_tags import FilterByTags


class InstanceScheduler(object):
class InstanceScheduler:
"""Abstract ec2 scheduler in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/rds_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .filter_resources_by_tags import FilterByTags


class RdsScheduler(object):
class RdsScheduler:
"""Abstract rds scheduler in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/redshift_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .filter_resources_by_tags import FilterByTags


class RedshiftScheduler(object):
class RedshiftScheduler:
"""Abstract redshift scheduler in a class."""

def __init__(self, region_name=None) -> None:
Expand Down
2 changes: 1 addition & 1 deletion package/scheduler/waiters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .exceptions import ec2_exception


class AwsWaiters(object):
class AwsWaiters:
"""Abstract aws waiter in a class."""

def __init__(self, region_name=None) -> None:
Expand Down

0 comments on commit 00fdb9d

Please sign in to comment.