File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1010)
1111
1212# Create a chat instance
13- init_messages = ["""Welcome!""" ]
14- chat = ui .Chat (
15- id = "chat" ,
16- messages = init_messages ,
17- )
13+ chat = ui .Chat (id = "chat" )
1814
1915# Display it
20- chat .ui ()
16+ chat .ui (messages = [ """Welcome!""" ] )
2117
2218# Goal: Test that chatlas is serializied and deserialized correctly.
2319#
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ async def _():
1515
1616@render .code
1717def message_state ():
18- return str (chat .messages ())
18+ return str (chat .messages ()) # pyright: ignore[reportUnknownMemberType]
Original file line number Diff line number Diff line change 11from shinychat .express import Chat
22
3- import shiny .express # noqa: F401
3+ import shiny .express # type: ignore[reportUnusedImport] # noqa: F401
44
55suggestions1 = """
66<p>Here is the <span id="first" class='suggestion'>1st input suggestion</span>.
You can’t perform that action at this time.
0 commit comments