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

DeprecationWarning: Unannotated event handler arguments has been deprecated in version 0.6.3 #41

Open
juandaherrera opened this issue Oct 25, 2024 · 0 comments

Comments

@juandaherrera
Copy link

Hi! I see that in this part of the code (from dashboard template):

def template(
    route: str | None = None,
    title: str | None = None,
    description: str | None = None,
    meta: str | None = None,
    script_tags: list[rx.Component] | None = None,
    on_load: rx.event.EventHandler | list[rx.event.EventHandler] | None = None,
) -> Callable[[Callable[[], rx.Component]], rx.Component]:

With the recent changes, it’s throwing this warning:

DeprecationWarning: Unannotated event handler arguments have been deprecated in version 0.6.3. Provide type annotations for event handler arguments. It will be completely removed in version 0.7.0.

and in VSCode, it’s suggesting an error on that line:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant