Skip to content

Commit c9fdac6

Browse files
committed
add annotations, ruff errors fix
1 parent e869b60 commit c9fdac6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

samples/python/agents/signing_and_verifying/__main__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22

33
from pathlib import Path
4+
from typing import Any
45

56
import uvicorn
67

@@ -104,10 +105,12 @@
104105
},
105106
)
106107

107-
async def async_signer(card):
108+
async def async_signer(card: AgentCard) -> AgentCard:
109+
"""Sign the public agent card."""
108110
return signer(card)
109111

110-
async def async_extended_signer(card, _):
112+
async def async_extended_signer(card: AgentCard, _: Any) -> AgentCard:
113+
"""Sign the extended agent card."""
111114
return signer(card)
112115

113116
request_handler = DefaultRequestHandler(

0 commit comments

Comments
 (0)