Skip to content

Commit 6768671

Browse files
authored
Update base_push_notification_sender.py
style: apply code formatting and linting fixes
1 parent 7442971 commit 6768671

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/a2a/server/tasks/base_push_notification_sender.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,19 @@ async def _dispatch_notification(
5555
headers = {}
5656
if push_info.token:
5757
headers['X-A2A-Notification-Token'] = push_info.token
58-
58+
5959
# Add authentication header if configured
6060
if push_info.authentication and push_info.authentication.schemes:
6161
for scheme in push_info.authentication.schemes:
62-
if scheme.lower() == 'bearer' and push_info.authentication.credentials:
63-
headers['Authorization'] = f'Bearer {push_info.authentication.credentials}'
62+
if (
63+
scheme.lower() == 'bearer'
64+
and push_info.authentication.credentials
65+
):
66+
headers['Authorization'] = (
67+
f'Bearer {push_info.authentication.credentials}'
68+
)
6469
break
65-
70+
6671
response = await self._client.post(
6772
url,
6873
json=task.model_dump(mode='json', exclude_none=True),

0 commit comments

Comments
 (0)