Skip to content

Commit

Permalink
Removed object subclassing. (#562)
Browse files Browse the repository at this point in the history
Removed object subclassing.
  • Loading branch information
gabrieldemarmiesse authored and Qwlouse committed Aug 3, 2019
1 parent d63e531 commit 5595136
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions sacred/config/config_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
recursive_fill_in)


class ConfigDict(object):
class ConfigDict:
def __init__(self, d):
super(ConfigDict, self).__init__()
self._conf = normalize_or_die(d)

def __call__(self, fixed=None, preset=None, fallback=None):
Expand Down
2 changes: 1 addition & 1 deletion sacred/config/config_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
__all__ = ('load_config_file', 'save_config_file')


class Handler(object):
class Handler:
def __init__(self, load, dump, mode):
self.load = load
self.dump = dump
Expand Down
3 changes: 1 addition & 2 deletions sacred/config/config_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
from sacred.config.signature import get_argspec


class ConfigScope(object):
class ConfigScope:
def __init__(self, func):
super(ConfigScope, self).__init__()
self.args, vararg_name, kw_wildcard, _, kwargs = get_argspec(func)
assert vararg_name is None, \
"*args not allowed for ConfigScope functions"
Expand Down
2 changes: 1 addition & 1 deletion sacred/config/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_argspec(f):
return args, vararg_name, kw_wildcard_name, pos_args, kwargs


class Signature(object):
class Signature:
"""
Extracts and stores information about the signature of a function.
Expand Down
2 changes: 1 addition & 1 deletion sacred/observers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ('RunObserver', 'td_format')


class RunObserver(object):
class RunObserver:
"""Defines the interface for all run observers."""

priority = 0
Expand Down
2 changes: 1 addition & 1 deletion sacred/observers/tinydb_hashfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def parse_tinydb_arg(cls, args):
return args


class TinyDbReader(object):
class TinyDbReader:

def __init__(self, path):
from .tinydb_hashfs_bases import get_db_file_manager
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config/test_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def kwonly_args(a, *, b, c=10):
{}, {}, {}, {}, {'c': 10}]


class SomeClass(object):
class SomeClass:
def bla(self, a, b, c):
return a, b, c

Expand Down

0 comments on commit 5595136

Please sign in to comment.