From 4887806c2284574b8df016143ddd91bce5543508 Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com> Date: Sun, 9 Mar 2025 08:57:58 +0100 Subject: [PATCH] fix: typo Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com> --- docs/features/plugin/functions/tab-shared/Common.md | 2 +- docs/features/plugin/tools/index.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/plugin/functions/tab-shared/Common.md b/docs/features/plugin/functions/tab-shared/Common.md index d7916db..ac21f1c 100644 --- a/docs/features/plugin/functions/tab-shared/Common.md +++ b/docs/features/plugin/functions/tab-shared/Common.md @@ -50,7 +50,7 @@ class Filter: pass # The inlet method is only used for Filter but the __user__ handling is the same - def inlet(body: dict, __user__: dict): + def inlet(self, body: dict, __user__: dict): # Because UserValves are defined per user they are only available # on use. # Note that although __user__ is a dict, __user__["valves"] is a diff --git a/docs/features/plugin/tools/index.mdx b/docs/features/plugin/tools/index.mdx index a032be0..d89fbf2 100644 --- a/docs/features/plugin/tools/index.mdx +++ b/docs/features/plugin/tools/index.mdx @@ -137,7 +137,7 @@ class Tools: pass # The __user__ handling is the same for Filters, Tools and Functions. - def test_the_tool(message: str, __user__: dict): + def test_the_tool(self, message: str, __user__: dict): """ This is a test tool. If the user asks you to test the tools, put any string you want in the message argument.