cleanup unneeded init_subclass super calls

This commit is contained in:
Benedikt Bartscher 2024-03-05 21:59:59 +01:00
parent 6d96a94d82
commit cdc2f4f6e0
No known key found for this signature in database
3 changed files with 1 additions and 6 deletions

View File

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

View File

@ -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).

View File

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