forked from bot/app
9 lines
4.9 KiB
JavaScript
9 lines
4.9 KiB
JavaScript
import{_ as n,o as e,c as a,e as s}from"./app-BiKNfxRB.js";const t={},l=s(`<h3 id="class-rpc" tabindex="-1"><a class="header-anchor" href="#class-rpc"><span><strong>class</strong> <code>RPC</code></span></a></h3><h3 id="method-init-self-on-calling-on-calling-func-none" tabindex="-1"><a class="header-anchor" href="#method-init-self-on-calling-on-calling-func-none"><span><em>method</em> <code>__init__(self, on_calling: ON_CALLING_FUNC) -> None</code></span></a></h3><details><summary><b>Source code</b></summary><div class="language-python line-numbers-mode" data-ext="py" data-title="py"><pre class="language-python"><code><span class="token keyword">def</span> <span class="token function">__init__</span><span class="token punctuation">(</span>self<span class="token punctuation">,</span> on_calling<span class="token punctuation">:</span> ON_CALLING_FUNC<span class="token punctuation">)</span> <span class="token operator">-</span><span class="token operator">></span> <span class="token boolean">None</span><span class="token punctuation">:</span>
|
|
self<span class="token punctuation">.</span>on_calling <span class="token operator">=</span> on_calling
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div></details><h3 id="method-call-self-args-tuple-kwargs-dict-any" tabindex="-1"><a class="header-anchor" href="#method-call-self-args-tuple-kwargs-dict-any"><span><em>method</em> <code>call(self, args: tuple, kwargs: dict) -> Any</code></span></a></h3><p><strong>Description</strong>: 调用</p><details><summary><b>Source code</b></summary><div class="language-python line-numbers-mode" data-ext="py" data-title="py"><pre class="language-python"><code><span class="token keyword">def</span> <span class="token function">call</span><span class="token punctuation">(</span>self<span class="token punctuation">,</span> args<span class="token punctuation">:</span> <span class="token builtin">tuple</span><span class="token punctuation">,</span> kwargs<span class="token punctuation">:</span> <span class="token builtin">dict</span><span class="token punctuation">)</span> <span class="token operator">-</span><span class="token operator">></span> Any<span class="token punctuation">:</span>
|
|
<span class="token triple-quoted-string string">"""
|
|
调用
|
|
"""</span>
|
|
<span class="token keyword">return</span> self<span class="token punctuation">.</span>on_calling<span class="token punctuation">(</span>args<span class="token punctuation">,</span> kwargs<span class="token punctuation">)</span>
|
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details>`,6),o=[l];function c(i,p){return e(),a("div",null,o)}const d=n(t,[["render",c],["__file","rpc.html.vue"]]),u=JSON.parse('{"path":"/en/dev/api/comm/rpc.html","title":"liteyuki.comm.rpc","lang":"en-US","frontmatter":{"title":"liteyuki.comm.rpc","description":"class RPC method __init__(self, on_calling: ON_CALLING_FUNC) -> None Source code method call(self, args: tuple, kwargs: dict) -> Any Description: 调用 Source code","head":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/comm/rpc.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/comm/rpc.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot"}],["meta",{"property":"og:title","content":"liteyuki.comm.rpc"}],["meta",{"property":"og:description","content":"class RPC method __init__(self, on_calling: ON_CALLING_FUNC) -> None Source code method call(self, args: tuple, kwargs: dict) -> Any Description: 调用 Source code"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.comm.rpc\\",\\"image\\":[\\"\\"],\\"dateModified\\":null,\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class RPC","slug":"class-rpc","link":"#class-rpc","children":[]},{"level":3,"title":"method __init__(self, on_calling: ON_CALLING_FUNC) -> None","slug":"method-init-self-on-calling-on-calling-func-none","link":"#method-init-self-on-calling-on-calling-func-none","children":[]},{"level":3,"title":"method call(self, args: tuple, kwargs: dict) -> Any","slug":"method-call-self-args-tuple-kwargs-dict-any","link":"#method-call-self-args-tuple-kwargs-dict-any","children":[]}],"git":{"createdTime":null,"updatedTime":null,"contributors":[]},"readingTime":{"minutes":0.2,"words":61},"filePathRelative":"en/dev/api/comm/rpc.md","autoDesc":true}');export{d as comp,u as data};
|