Get the props that expected a component as value. Returns: The components props.
(cls)
| 529 | @classmethod |
| 530 | @lru_cache(maxsize=None) |
| 531 | def get_component_props(cls) -> set[str]: |
| 532 | """Get the props that expected a component as value. |
| 533 | |
| 534 | Returns: |
| 535 | The components props. |
| 536 | """ |
| 537 | return { |
| 538 | name |
| 539 | for name, field in cls.get_fields().items() |
| 540 | if name in cls.get_props() |
| 541 | and types._issubclass(field.outer_type_, Component) |
| 542 | } |
| 543 | |
| 544 | @classmethod |
| 545 | def create(cls, *children, **props) -> Component: |
no test coverage detected