MCPcopy Create free account
hub / github.com/RL-Align/RL-Kernel / FakeRemoteMethod

Class FakeRemoteMethod

tests/test_ray_actor_manager.py:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31class FakeRemoteMethod:
32 def __init__(self, method):
33 self.method = method
34 self.remote_calls = []
35
36 def remote(self, *args, **kwargs):
37 self.remote_calls.append((args, kwargs))
38 return FakeObjectRef(self.method(*args, **kwargs))
39
40
41class FakeActorHandle:

Callers 1

__getattr__Method · 0.85

Calls

no outgoing calls

Tested by 1

__getattr__Method · 0.68