Skip to content

Commit f7d3d23

Browse files
authoredApr 8, 2025
fix: undefined field type (#1031)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed --------- Co-authored-by: rushilpatel0 <[email protected]>
1 parent f2f2bcc commit f7d3d23

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎src/codegen/agents/client/openapi_client/api_response.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING, Generic, TypeVar
5+
from typing import Generic, TypeVar
66

77
from pydantic import BaseModel, Field, StrictBytes, StrictInt
88

9-
if TYPE_CHECKING:
10-
from collections.abc import Mapping
11-
129
T = TypeVar("T")
1310

1411

1512
class ApiResponse(BaseModel, Generic[T]):
1613
"""API response object"""
1714

1815
status_code: StrictInt = Field(description="HTTP status code")
19-
headers: Mapping[str, str] | None = Field(None, description="HTTP headers")
16+
headers: dict[str, str] | None = Field(None, description="HTTP headers")
2017
data: T = Field(description="Deserialized data given the data type")
2118
raw_data: StrictBytes = Field(description="Raw data (HTTP response body)")
2219

0 commit comments

Comments
 (0)