MCPcopy
hub / github.com/reflex-dev/reflex / __init_subclass__

Method __init_subclass__

reflex/state.py:2545–2552  ·  view source on GitHub ↗

Overwrite mixin default to True. Args: mixin: Whether the subclass is a mixin and should not be initialized. **kwargs: The kwargs to pass to the init_subclass method.

(cls, mixin: bool = True, **kwargs)

Source from the content-addressed store, hash-verified

2543
2544 @classmethod
2545 def __init_subclass__(cls, mixin: bool = True, **kwargs):
2546 """Overwrite mixin default to True.
2547
2548 Args:
2549 mixin: Whether the subclass is a mixin and should not be initialized.
2550 **kwargs: The kwargs to pass to the init_subclass method.
2551 """
2552 super().__init_subclass__(mixin=mixin, **kwargs)
2553
2554 @classmethod
2555 def get_component(cls, *children, **props) -> Component:

Callers

nothing calls this directly

Calls 1

__init_subclass__Method · 0.45

Tested by

no test coverage detected