From 296430d874431a7b5a6de165ce48a535b29928ca Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Wed, 28 May 2025 19:54:34 -0700 Subject: [PATCH] add repr to plugins --- reflex/plugins/base.py | 8 ++++++++ reflex/plugins/tailwind_v3.py | 8 ++++++++ reflex/plugins/tailwind_v4.py | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/reflex/plugins/base.py b/reflex/plugins/base.py index fc01d27f9cd..b2d175a7852 100644 --- a/reflex/plugins/base.py +++ b/reflex/plugins/base.py @@ -99,3 +99,11 @@ def pre_compile(self, **context: Unpack[PreCompileContext]) -> None: Args: context: The context for the plugin. """ + + def __repr__(self): + """Return a string representation of the plugin. + + Returns: + A string representation of the plugin. + """ + return f"{self.__class__.__name__}()" diff --git a/reflex/plugins/tailwind_v3.py b/reflex/plugins/tailwind_v3.py index 8fb1de9b205..61e148e0f9b 100644 --- a/reflex/plugins/tailwind_v3.py +++ b/reflex/plugins/tailwind_v3.py @@ -253,3 +253,11 @@ def pre_compile(self, **context): str(Path(Dirs.STYLES) / (PageNames.STYLESHEET_ROOT + Ext.CSS)), add_tailwind_to_css_file, ) + + def __repr__(self): + """Return a string representation of the plugin. + + Returns: + A string representation of the plugin. + """ + return "TailwindV3Plugin()" diff --git a/reflex/plugins/tailwind_v4.py b/reflex/plugins/tailwind_v4.py index 1ba1e78bc78..7703641dc27 100644 --- a/reflex/plugins/tailwind_v4.py +++ b/reflex/plugins/tailwind_v4.py @@ -256,3 +256,11 @@ def pre_compile(self, **context): str(Path(Dirs.STYLES) / (PageNames.STYLESHEET_ROOT + Ext.CSS)), add_tailwind_to_css_file, ) + + def __repr__(self): + """Return a string representation of the plugin. + + Returns: + A string representation of the plugin. + """ + return "TailwindV4Plugin()"