[Python] Expected type 'MagicFilter | None', got 'bool' instead

Discussão em 'Python' iniciado por Stack, Fevereiro 5, 2025.

  1. Stack

    Stack Membro Participativo

    I can't figure out why this error occurs:

    Expected type 'MagicFilter | None', got 'bool' instead


    In this line:

    @user_router_inline.callback_query(MenuCallback.filter(F.menu_name == 'filters'))


    If you replace == with > then the error disappears, but why does this happen?

    Im use PyCharm 2024.3.2 (Community Edition)

    Continue reading...

Compartilhe esta Página