Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ def begin_struct(self, schema: "Schema") -> Iterator[ShapeSerializer]:
# Note that if we're serializing an operation input or output, it won't be a
# union at all, so this won't get triggered. Thankfully, that's what we want.
if schema.shape_type is ShapeType.UNION:
try:
yield self
finally:
return
yield self
return

headers: dict[str, HEADER_VALUE] = {}

Expand Down
4 changes: 2 additions & 2 deletions packages/smithy-core/src/smithy_core/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ async def _handle_execution[I: SerializeableShape, O: DeserializeableShape](
transport_request=interceptor.modify_before_retry_loop(request_context),
)

return await self._retry(call, request_context, request_future)
return await self._retry(call, request_context, request_future) # type: ignore[return-value]
except Exception as e:
return OutputContext(
request=request_context.request,
Expand All @@ -325,7 +325,7 @@ async def _retry[I: SerializeableShape, O: DeserializeableShape](
call: ClientCall[I, O],
request_context: RequestContext[I, TRequest],
request_future: Future[RequestContext[I, TRequest]] | None,
) -> OutputContext[I, O, TRequest | None, TResponse | None]:
) -> OutputContext[I, O, TRequest, TResponse | None]:
if not call.retryable():
return await self._handle_attempt(call, request_context, request_future)

Expand Down
Loading