We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b218ed2 commit a5d1b2eCopy full SHA for a5d1b2e
codegen/core/src/main/java/software/amazon/smithy/python/codegen/integrations/HttpApiKeyAuth.java
@@ -63,8 +63,9 @@ public List<RuntimeClientPlugin> getClientPlugins(GenerationContext context) {
63
.initialize(writer -> {
64
writer.addImport("smithy_http.aio.identity.apikey", "APIKeyIdentityResolver");
65
writer.write("""
66
- if api_key_identity_resolver is None:
67
- api_key_identity_resolver = APIKeyIdentityResolver()
+ self.api_key_identity_resolver = (
+ api_key_identity_resolver or APIKeyIdentityResolver()
68
+ )
69
""");
70
})
71
.build())
0 commit comments