chore: format
This commit is contained in:
@@ -433,11 +433,7 @@ def strip_empty_content_blocks(messages: list[dict]) -> list[dict]:
|
||||
cleaned = [
|
||||
block
|
||||
for block in content
|
||||
if not (
|
||||
isinstance(block, dict)
|
||||
and block.get('type') == 'text'
|
||||
and not block.get('text', '').strip()
|
||||
)
|
||||
if not (isinstance(block, dict) and block.get('type') == 'text' and not block.get('text', '').strip())
|
||||
]
|
||||
if cleaned:
|
||||
message['content'] = cleaned
|
||||
@@ -521,7 +517,6 @@ def get_gravatar_url(email):
|
||||
return f'https://www.gravatar.com/avatar/{hash_hex}?d=mp'
|
||||
|
||||
|
||||
|
||||
# Give us each day the data we require, and forgive us our
|
||||
# technical debts as we forgive those who commit upstream.
|
||||
# Lead the bits not into corruption but deliver them from
|
||||
|
||||
Reference in New Issue
Block a user