cleanup unneeded init_subclass super calls
This commit is contained in:
parent
6d96a94d82
commit
cdc2f4f6e0
@ -202,14 +202,12 @@ class Component(BaseComponent, ABC):
|
||||
_memoization_mode: MemoizationMode = MemoizationMode()
|
||||
|
||||
@classmethod
|
||||
def __pydantic_init_subclass__(cls, **kwargs):
|
||||
def __pydantic_init_subclass__(cls):
|
||||
"""Set default properties.
|
||||
|
||||
Args:
|
||||
**kwargs: The kwargs to pass to the superclass.
|
||||
"""
|
||||
super().__init_subclass__(**kwargs)
|
||||
|
||||
# Get all the props for the component.
|
||||
props = cls.get_props()
|
||||
|
||||
|
@ -69,8 +69,6 @@ class Model(Base, sqlmodel.SQLModel):
|
||||
cls.model_fields.pop("id", None)
|
||||
cls.model_rebuild(force=True)
|
||||
|
||||
super().__init_subclass__()
|
||||
|
||||
@classmethod
|
||||
def _dict_recursive(cls, value):
|
||||
"""Recursively serialize the relationship object(s).
|
||||
|
@ -375,7 +375,6 @@ class BaseState(Base, ABC, extra="allow"):
|
||||
Raises:
|
||||
ValueError: If a substate class shadows another.
|
||||
"""
|
||||
# super().__init_subclass__(**kwargs)
|
||||
# Event handlers should not shadow builtin state methods.
|
||||
cls._check_overridden_methods()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user