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
+2 -2
View File
@@ -21,7 +21,7 @@ DEFAULT_REMOTE_FUNCTION_NUM_TASK_RETRIES = 3
logger = logging.getLogger(__name__)
class RemoteFunction(object):
class RemoteFunction:
"""A remote function.
This is a decorated function. It can be used to spawn tasks.
@@ -133,7 +133,7 @@ class RemoteFunction(object):
func_cls = self
class FuncWrapper(object):
class FuncWrapper:
def remote(self, *args, **kwargs):
return func_cls._remote(args=args, kwargs=kwargs, **options)