ray.actor.ActorClass.__init__#
- ActorClass.__init__(name, bases, attr)[source]#
Prevents users from directly inheriting from an ActorClass.
This will be called when a class is defined with an ActorClass object as one of its base classes. To intentionally construct an ActorClass, use the ‘_ray_from_modified_class’ classmethod.
- Raises:
ActorClassInheritanceException – When ActorClass is inherited.
AssertionError – If ActorClassInheritanceException is not raised i.e., conditions for raising it are not met in any iteration of the loop.
TypeError – In all other cases.