mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 11:34:25 +08:00
Remove (object) from class declarations. (#6658)
This commit is contained in:
committed by
Philipp Moritz
parent
f1b56fa5ee
commit
39a3459886
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user