Skip to content

on_process_result=SwitchTo #159

@iBrokeYourGui

Description

@iBrokeYourGui
  1. This case works fine:
    on_process_result=go_to_main_state,

async def go_to_main_state(_, button: Button, manager: DialogManager):
await manager.switch_to(SettingsDialogSG.main)

  1. This case doesn't want to work:
    on_process_result=SwitchTo(Const(""), id="_", state=SettingsDialogSG.main)
    cause:
    Expected type 'Optional[(Union[dict, list, int, str, None], Any, DialogManager) -> Awaitable]', got 'SwitchTo' instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions