Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Dec 12, 2024
1 parent fe3ee7d commit b237e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/jupyterlab-chat/jupyterlab_chat/ychat.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ def get_messages(self) -> list[Message]:
message_dicts = self._get_messages()
return [Message(**message_dict) for message_dict in message_dicts]

def _get_message_by_index(self, index: int) -> dict:
def _get_message_by_index(self, index: int):
"""
Return a message from its index.
"""
return self._ymessages[index].to_py()
return self._ymessages[index]

def _get_messages(self) -> list[dict]:
"""
Expand Down

0 comments on commit b237e96

Please sign in to comment.