跳至主要內容

liteyuki.comm.rpc

远野千束小于 1 分钟

class RPC

method __init__(self, on_calling: ON_CALLING_FUNC) -> None

源代码
def __init__(self, on_calling: ON_CALLING_FUNC) -> None:
    self.on_calling = on_calling

method call(self, args: tuple, kwargs: dict) -> Any

说明: 调用

源代码
def call(self, args: tuple, kwargs: dict) -> Any:
    """
        调用
        """
    return self.on_calling(args, kwargs)

var ON_CALLING_FUNC = Callable[[tuple, dict], Any]

  • 类型: TypeAlias