Remove (object) from class declarations. (#6658)

This commit is contained in:
Robert Nishihara
2020-01-02 17:42:13 -08:00
committed by Philipp Moritz
parent f1b56fa5ee
commit 39a3459886
162 changed files with 397 additions and 398 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ except NameError:
logger = logging.getLogger(__name__)
class Checkpoint(object):
class Checkpoint:
"""Describes a checkpoint of trial state.
Checkpoint may be saved in different storage.
@@ -54,7 +54,7 @@ class Checkpoint(object):
return Checkpoint(Checkpoint.MEMORY, value)
class QueueItem(object):
class QueueItem:
def __init__(self, priority, value):
self.priority = priority
self.value = value
@@ -69,7 +69,7 @@ class QueueItem(object):
return self.priority < other.priority
class CheckpointManager(object):
class CheckpointManager:
"""Manages checkpoints on the driver for a trial."""
def __init__(self, keep_checkpoints_num, checkpoint_score_attr):