From 38cbc2c7227aff3f224356b2b0cdcfb0fa2bbffe Mon Sep 17 00:00:00 2001 From: robinzyb <38876805+robinzyb@users.noreply.github.com> Date: Mon, 29 Jan 2024 22:15:34 +0100 Subject: [PATCH] Update the Plugin class docstring --- dpdata/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dpdata/plugin.py b/dpdata/plugin.py index 0b5027a9e..20e51eb2d 100644 --- a/dpdata/plugin.py +++ b/dpdata/plugin.py @@ -6,11 +6,11 @@ class Plugin: Examples -------- - >>> Plugin = Register() - >>> @Plugin.register("xx") + >>> example_plugin = Plugin() + >>> @example_plugin.register("xx") def xxx(): pass - >>> print(Plugin.plugins['xx']) + >>> print(example_plugin.plugins['xx']) """ def __init__(self):