We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2877893 commit 56e2449Copy full SHA for 56e2449
1 file changed
src/a2a/server/routes/common.py
@@ -1,13 +1,17 @@
1
from collections.abc import Callable
2
from typing import TYPE_CHECKING, Any
3
4
+
5
if TYPE_CHECKING:
6
+ from starlette.authentication import BaseUser
7
from starlette.requests import Request
8
else:
9
try:
10
11
12
except ImportError:
13
Request = Any
14
+ BaseUser = Any
15
16
from a2a.auth.user import UnauthenticatedUser, User
17
from a2a.extensions.common import (
@@ -23,7 +27,7 @@
23
27
class StarletteUser(User):
24
28
"""Adapts a Starlette BaseUser to the A2A User interface."""
25
29
26
- def __init__(self, user: Any):
30
+ def __init__(self, user: BaseUser):
31
self._user = user
32
33
@property
0 commit comments