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()"