Skip to content

Commit 4cf4e13

Browse files
Update interceptors
1 parent b3a8ebc commit 4cf4e13

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.interceptors.user_agent import USER_AGENT
1010
from smithy_http.user_agent import UserAgentComponent, RawStringUserAgentComponent
1111

@@ -37,9 +37,7 @@ def __init__(
3737
self._sdk_version = sdk_version
3838
self._service_id = service_id
3939

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

0 commit comments

Comments
 (0)