Skip to content

[BUG, pkg-py]: False-positive deprecation warning #108

Description

@cpsievert

#91 introduced a false-positive deprecation when input is submitted:

import shiny.express

from shinychat.express import Chat

chat = Chat(id="chat")
chat.ui()

@chat.on_user_submit
async def handle_user_input(user_input: str):
    await chat.append_message(f"You said: {user_input}")
ShinyDeprecationWarning: `.user_input(transform=...)` is deprecated. User input transformation features will be removed in a future version. See here for more details: https://github.com/posit-dev/shinychat/pull/91
  input = self.user_input(transform=True)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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