Skip to content

Commit 264464f

Browse files
committed
Address comments
1 parent 45f04bd commit 264464f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/openai/_exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ class APITimeoutError(APIConnectionError):
136136
def __init__(self, request: httpx.Request) -> None:
137137
super().__init__(message="Request timed out.", request=request)
138138

139+
@override
140+
def __reduce__(self) -> tuple[Callable[..., Self], tuple[Any, ...]]:
141+
return (self.__class__, (self.request,))
142+
139143

140144
class BadRequestError(APIStatusError):
141145
status_code: Literal[400] = 400 # pyright: ignore[reportIncompatibleVariableOverride]

0 commit comments

Comments
 (0)