ray.actor.ActorClass.__init__#
- ActorClass.__init__(name: str, bases: tuple, attr: dict)[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.
- Parameters:
name – The name of the subclass being defined.
bases – The tuple of base classes of the subclass being defined.
attr – The attribute namespace of the subclass being defined.
- 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.