Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on_process_result=SwitchTo #159

Open
iBrokeYourGui opened this issue Jun 27, 2022 · 0 comments
Open

on_process_result=SwitchTo #159

iBrokeYourGui opened this issue Jun 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@iBrokeYourGui
Copy link

  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
@Tishka17 Tishka17 added the enhancement New feature or request label Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants