Skip to content

Commit d7d71e1

Browse files
Update interceptors
1 parent b042aaa commit d7d71e1

File tree

3 files changed

+185
-138
lines changed

3 files changed

+185
-138
lines changed

packages/smithy-aws-core/src/smithy_aws_core/interceptors/user_agent.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import smithy_aws_core
77
import smithy_core
8-
from smithy_core.interceptors import Interceptor, InterceptorContext
8+
from smithy_core.interceptors import Interceptor, RequestContext
99
from smithy_http.user_agent import UserAgentComponent, RawStringUserAgentComponent
1010

1111
_USERAGENT_SDK_NAME = "aws-sdk-python"
@@ -36,9 +36,7 @@ def __init__(
3636
self._sdk_version = sdk_version
3737
self._service_id = service_id
3838

39-
def read_after_serialization(
40-
self, context: InterceptorContext[Any, Any, Any, Any]
41-
) -> None:
39+
def read_after_serialization(self, context: RequestContext[Any, Any]) -> None:
4240
if "user_agent" in context.properties:
4341
user_agent = context.properties["user_agent"]
4442
user_agent.sdk_metadata = self._build_sdk_metadata()

0 commit comments

Comments
 (0)