Skip to content

MyPy: Argument 1 to "goto" of "SceneWizard" has incompatible type "State"; expected "type[Scene] | str" [arg-type] #1684

@andrew000

Description

@andrew000
error: Argument 1 to "goto" of
"SceneWizard" has incompatible type "State"; expected "type[Scene] | str"  [arg-type]                                                                 
            await self.wizard.goto(ChatSettingsStates.GENERAL_SETTINGS, updated=False)
class ChatSettingsStates(StatesGroup):
    GENERAL_SETTINGS = State()
await self.wizard.goto(ChatSettingsStates.GENERAL_SETTINGS, updated=False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions