Look at the code below:
class A:
def __init__(self, n):
self.n = n
class B(A):
def __init__(self):
super(B, self).__init__(n=10)
Adding @ray.remote
at the beginning of any class will result in typing errors:
- If
A
becomes an actor, the lineclass B(A)
will getShould be a type expression, but received "RemoteFunction"
- If
B
becomes an actor, the linesuper(B, self)
will getThe class type should be the first argument in a "super" call, but received "RemoteFunction"
Does this mean we cannot incorporate OOP designs into ray actors?