Get the root state of the state tree. Returns: The root state of the state tree.
(self)
| 1653 | }) |
| 1654 | |
| 1655 | def _get_root_state(self) -> BaseState: |
| 1656 | """Get the root state of the state tree. |
| 1657 | |
| 1658 | Returns: |
| 1659 | The root state of the state tree. |
| 1660 | """ |
| 1661 | parent_state = self |
| 1662 | while parent_state.parent_state is not None: |
| 1663 | parent_state = parent_state.parent_state |
| 1664 | return parent_state |
| 1665 | |
| 1666 | async def _get_state_from_redis(self, state_cls: type[T_STATE]) -> T_STATE: |
| 1667 | """Get a state instance from redis. |
no outgoing calls
no test coverage detected