Skip to content

Commit 0829662

Browse files
committed
Add docs to SafeResponse
1 parent 4687726 commit 0829662

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ def logger(self) -> logging.Logger:
424424

425425

426426
class SafeResponse(requests.Response):
427+
"""
428+
A subclass of requests.Response that acts as an interface to migrate parsed child records
429+
into a response object. This allows seamless interaction with child records as if they
430+
were original response, ensuring compatibility with methods that expect requests.Response data type.
431+
"""
427432
def __getattr__(self, name: str) -> Any:
428433
return getattr(requests.Response, name, None)
429434

0 commit comments

Comments
 (0)