File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/smithy-core/src/smithy_core Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
from copy import copy , deepcopy
4
- from typing import Any , TypeVar
4
+ from typing import TypeVar
5
+
6
+ from .types import TypedProperties
5
7
6
8
Request = TypeVar ("Request" )
7
9
Response = TypeVar ("Response" )
@@ -34,7 +36,7 @@ def __init__(
34
36
self ._response = response
35
37
self ._transport_request = transport_request
36
38
self ._transport_response = transport_response
37
- self ._properties : dict [ str , Any ] = {}
39
+ self ._properties = TypedProperties ()
38
40
39
41
@property
40
42
def request (self ) -> Request :
@@ -73,7 +75,7 @@ def transport_response(self) -> TransportResponse:
73
75
return self ._transport_response
74
76
75
77
@property
76
- def properties (self ) -> dict [ str , Any ] :
78
+ def properties (self ) -> TypedProperties :
77
79
"""Retrieve the generic property bag.
78
80
79
81
These untyped properties will be made available to all other interceptors or
You can’t perform that action at this time.
0 commit comments