Skip to content

Commit fe2cb01

Browse files
committed
Update PropertyKey typing
1 parent cec8afa commit fe2cb01

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/ClientGenerator.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,14 @@ await sleep(retry_token.retry_delay)
598598
signature = re.split("Signature=", auth_value)[-1] # type: ignore
599599
context.properties["signature"] = signature.encode('utf-8')
600600
601-
identity_key = PropertyKey(key="identity", value_type=Identity | None)
602-
sp_key = PropertyKey(key="signer_properties", value_type=dict)
601+
identity_key: PropertyKey[Identity | None] = PropertyKey(
602+
key="identity",
603+
value_type=Identity | None # type: ignore
604+
)
605+
sp_key: PropertyKey[dict[str, Any]] = PropertyKey(
606+
key="signer_properties",
607+
value_type=dict[str, Any] # type: ignore
608+
)
603609
context.properties[identity_key] = identity
604610
context.properties[sp_key] = auth_option.signer_properties
605611
""");

0 commit comments

Comments
 (0)