mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-02-07 15:26:11 +08:00
2 lines
7.1 KiB
JavaScript
2 lines
7.1 KiB
JavaScript
import{_ as t,c as e,ae as s,o as n}from"./chunks/framework.BzDBnRMZ.js";const p=JSON.parse('{"title":"models","description":"","frontmatter":{"title":"models","order":100},"headers":[],"relativePath":"en/dev/api/plugin/models.md","filePath":"en/dev/api/plugin/models.md","lastUpdated":1734175019000}'),o={name:"en/dev/api/plugin/models.md"};function r(i,a,l,d,h,m){return n(),e("div",null,a[0]||(a[0]=[s('<h1 id="module-nonebot-plugin-marshoai-plugin-models" tabindex="-1"><strong>Module</strong> <code>nonebot_plugin_marshoai.plugin.models</code> <a class="header-anchor" href="#module-nonebot-plugin-marshoai-plugin-models" aria-label="Permalink to "**Module** `nonebot_plugin_marshoai.plugin.models`""></a></h1><h3 id="class-pluginmetadata-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>PluginMetadata(BaseModel)</code> <a class="header-anchor" href="#class-pluginmetadata-basemodel" aria-label="Permalink to "***class*** `PluginMetadata(BaseModel)`""></a></h3><h4 id="attr-name-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>name: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-name-str-no-default" aria-label="Permalink to "***attr*** `name: str = NO_DEFAULT`""></a></h4><h4 id="attr-description-str" tabindex="-1"><em><strong>attr</strong></em> <code>description: str = ''</code> <a class="header-anchor" href="#attr-description-str" aria-label="Permalink to "***attr*** `description: str = ''`""></a></h4><h4 id="attr-usage-str" tabindex="-1"><em><strong>attr</strong></em> <code>usage: str = ''</code> <a class="header-anchor" href="#attr-usage-str" aria-label="Permalink to "***attr*** `usage: str = ''`""></a></h4><h4 id="attr-author-str" tabindex="-1"><em><strong>attr</strong></em> <code>author: str = ''</code> <a class="header-anchor" href="#attr-author-str" aria-label="Permalink to "***attr*** `author: str = ''`""></a></h4><h4 id="attr-homepage-str" tabindex="-1"><em><strong>attr</strong></em> <code>homepage: str = ''</code> <a class="header-anchor" href="#attr-homepage-str" aria-label="Permalink to "***attr*** `homepage: str = ''`""></a></h4><h4 id="attr-extra-dict-str-any" tabindex="-1"><em><strong>attr</strong></em> <code>extra: dict[str, Any] = {}</code> <a class="header-anchor" href="#attr-extra-dict-str-any" aria-label="Permalink to "***attr*** `extra: dict[str, Any] = {}`""></a></h4><h3 id="class-plugin-basemodel" tabindex="-1"><em><strong>class</strong></em> <code>Plugin(BaseModel)</code> <a class="header-anchor" href="#class-plugin-basemodel" aria-label="Permalink to "***class*** `Plugin(BaseModel)`""></a></h3><hr><h4 id="func-hash-self-int" tabindex="-1"><em><strong>func</strong></em> <code>hash self => int</code> <a class="header-anchor" href="#func-hash-self-int" aria-label="Permalink to "***func*** `hash self => int`""></a></h4><details><summary><b>Source code</b> or <a href="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/plugin/models.py#L69" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __hash__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self) -> </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">int</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>\n<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> hash</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.name)</span></span></code></pre></div></details><hr><h4 id="func-self-other-any-bool" tabindex="-1"><em><strong>func</strong></em> <code>self == other: Any => bool</code> <a class="header-anchor" href="#func-self-other-any-bool" aria-label="Permalink to "***func*** `self == other: Any => bool`""></a></h4><details><summary><b>Source code</b> or <a href="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/plugin/models.py#L72" target="_blank">View on GitHub</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">def</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> __eq__</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(self, other: Any) -> </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">bool</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>\n<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> self</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">.name </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">==</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> other.name</span></span></code></pre></div></details><h4 id="attr-name-str-no-default-1" tabindex="-1"><em><strong>attr</strong></em> <code>name: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-name-str-no-default-1" aria-label="Permalink to "***attr*** `name: str = NO_DEFAULT`""></a></h4><h4 id="attr-module-moduletype-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>module: ModuleType = NO_DEFAULT</code> <a class="header-anchor" href="#attr-module-moduletype-no-default" aria-label="Permalink to "***attr*** `module: ModuleType = NO_DEFAULT`""></a></h4><h4 id="attr-module-name-str-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>module_name: str = NO_DEFAULT</code> <a class="header-anchor" href="#attr-module-name-str-no-default" aria-label="Permalink to "***attr*** `module_name: str = NO_DEFAULT`""></a></h4><h4 id="attr-module-path-str-none-no-default" tabindex="-1"><em><strong>attr</strong></em> <code>module_path: str | None = NO_DEFAULT</code> <a class="header-anchor" href="#attr-module-path-str-none-no-default" aria-label="Permalink to "***attr*** `module_path: str | None = NO_DEFAULT`""></a></h4><h4 id="attr-metadata-pluginmetadata-none-none" tabindex="-1"><em><strong>attr</strong></em> <code>metadata: PluginMetadata | None = None</code> <a class="header-anchor" href="#attr-metadata-pluginmetadata-none-none" aria-label="Permalink to "***attr*** `metadata: PluginMetadata | None = None`""></a></h4>',20)]))}const c=t(o,[["render",r]]);export{p as __pageData,c as default};
|