We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89c4cd commit 6a5482fCopy full SHA for 6a5482f
src/a2a/server/apps/jsonrpc/fastapi_app.py
@@ -1,16 +1,9 @@
1
import logging
2
-import sys
3
4
from typing import Any
5
6
from fastapi import FastAPI
7
8
-
9
-if sys.version_info < (3, 12): # pragma: no cover
10
- from typing_extensions import override
11
-else: # pragma: no cover
12
- from typing import override
13
14
from a2a.server.apps.jsonrpc.jsonrpc_app import (
15
CallContextBuilder,
16
JSONRPCApplication,
@@ -32,8 +25,8 @@ class A2AFastAPI(FastAPI):
32
25
33
26
_a2a_components_added: bool = False
34
27
35
- @override
36
28
def openapi(self) -> dict[str, Any]:
29
+ """Generates the OpenAPI schema for the application."""
37
30
openapi_schema = super().openapi()
38
31
if not self._a2a_components_added:
39
a2a_request_schema = A2ARequest.model_json_schema(
0 commit comments