Skip to content

Commit 1f5b93d

Browse files
committed
Fix typing issue in ApiKeySigner
1 parent 570a128 commit 1f5b93d

File tree

1 file changed

+2
-2
lines changed
  • packages/smithy-http/src/smithy_http/aio/auth

1 file changed

+2
-2
lines changed

packages/smithy-http/src/smithy_http/aio/auth/apikey.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ async def sign(
108108
)
109109
case ApiKeyLocation.HEADER:
110110
value = identity.api_key
111-
if signing_properties.get("scheme"):
112-
value = f"{signing_properties['scheme']} {value}"
111+
if (scheme := signing_properties.get("scheme", None)) is not None:
112+
value = f"{scheme} {value}"
113113
http_request.fields.set_field(
114114
Field(name=signing_properties["name"], values=[value])
115115
)

0 commit comments

Comments
 (0)