Skip to content

Commit d4b5bad

Browse files
committed
Fix type annotation for _identity_client in auth config
Updated the type annotation for _identity_client to use Optional["IdentityClient"] for better type clarity. Also removed unnecessary whitespace in ve_middlewares.py.
1 parent 4b39973 commit d4b5bad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

veadk/a2a/ve_middlewares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _extract_token(self, request: Request) -> tuple[Optional[str], bool]:
207207
"""
208208
has_prefix = False
209209
token = None
210-
210+
211211
if self.auth_method == "header":
212212
# Extract from Authorization header
213213
auth_header = request.headers.get("Authorization") or request.headers.get(

veadk/configs/auth_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class VeIdentityConfig(BaseSettings):
5656
"""
5757

5858
# Global singleton IdentityClient instance
59-
_identity_client: "IdentityClient|None" = None
59+
_identity_client: Optional["IdentityClient"] = None
6060

6161
def get_endpoint(self) -> str:
6262
"""Get the endpoint URL for Identity service.

0 commit comments

Comments
 (0)