Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Jan 8, 2024
1 parent 83d9470 commit 366ea36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/promplate/prompt/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def parse_chat_markup(text: str) -> List[Message]:
buffer = []

for line in text.splitlines():
match = is_message_start.match(line)
if match:
if match := is_message_start.match(line):
role, name = match.group(1), match.group(2)

if current_message:
Expand Down

0 comments on commit 366ea36

Please sign in to comment.