Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions reflex/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ class Config:
use_enum_values = True
extra = "allow"

def __init__(self, *args, **kwargs):
"""Initialize the base class.

Args:
*args: Positional arguments.
**kwargs: Keyword arguments.
"""
def __init_subclass__(cls):
"""Warn that rx.Base is deprecated."""
from reflex.utils import console

console.deprecate(
Expand All @@ -39,7 +34,7 @@ def __init__(self, *args, **kwargs):
deprecation_version="0.8.15",
removal_version="0.9.0",
)
super().__init__(*args, **kwargs)
super().__init_subclass__()

def json(self) -> str:
"""Convert the object to a json string.
Expand Down
Loading