from typing import Union from phasmplatform.common.methodcall import MethodCall, MethodCallError from phasmplatform.common.value import Value, NoneValue from .base import BaseRunner class PreludeRunner(BaseRunner): __slots__ = () def do_call(self, call: MethodCall) -> Union[Value, MethodCallError]: if call.method.name == 'on_module_loaded': self.container_log[0]('PreludeRunner loaded') return NoneValue raise NotImplementedError(call)