Skip to content

Commit 5c3f6c5

Browse files
committed
fix(apigateway): honour docstrings and set content_type/body to be optional
1 parent 2e20eea commit 5c3f6c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ class Response:
143143
def __init__(
144144
self,
145145
status_code: int,
146-
content_type: Optional[str],
147-
body: Union[str, bytes, None],
146+
content_type: Optional[str] = None,
147+
body: Union[str, bytes, None] = None,
148148
headers: Optional[Dict] = None,
149149
):
150150
"""

0 commit comments

Comments
 (0)