Skip to content

Commit 5fd8ea9

Browse files
authored
output what class is subclassing rx.Base (#5864)
1 parent f718715 commit 5fd8ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reflex/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init_subclass__(cls):
3030

3131
console.deprecate(
3232
feature_name="rx.Base",
33-
reason="You can subclass from `pydantic.BaseModel` directly instead or use dataclasses if possible.",
33+
reason=f"{cls!r} is subclassing rx.Base. You can subclass from `pydantic.BaseModel` directly instead or use dataclasses if possible.",
3434
deprecation_version="0.8.15",
3535
removal_version="0.9.0",
3636
)

0 commit comments

Comments
 (0)