Skip to content

Commit 29fb030

Browse files
authored
add repr to plugins (#5364)
1 parent 45c0966 commit 29fb030

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

reflex/plugins/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,11 @@ def pre_compile(self, **context: Unpack[PreCompileContext]) -> None:
9999
Args:
100100
context: The context for the plugin.
101101
"""
102+
103+
def __repr__(self):
104+
"""Return a string representation of the plugin.
105+
106+
Returns:
107+
A string representation of the plugin.
108+
"""
109+
return f"{self.__class__.__name__}()"

reflex/plugins/tailwind_v3.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,11 @@ def pre_compile(self, **context):
253253
str(Path(Dirs.STYLES) / (PageNames.STYLESHEET_ROOT + Ext.CSS)),
254254
add_tailwind_to_css_file,
255255
)
256+
257+
def __repr__(self):
258+
"""Return a string representation of the plugin.
259+
260+
Returns:
261+
A string representation of the plugin.
262+
"""
263+
return "TailwindV3Plugin()"

reflex/plugins/tailwind_v4.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,11 @@ def pre_compile(self, **context):
256256
str(Path(Dirs.STYLES) / (PageNames.STYLESHEET_ROOT + Ext.CSS)),
257257
add_tailwind_to_css_file,
258258
)
259+
260+
def __repr__(self):
261+
"""Return a string representation of the plugin.
262+
263+
Returns:
264+
A string representation of the plugin.
265+
"""
266+
return "TailwindV4Plugin()"

0 commit comments

Comments
 (0)