Skip to content

Commit a3a227e

Browse files
committed
Fix positional argument ordering
1 parent 815ebeb commit a3a227e

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

codegen/aws/core/src/main/java/software/amazon/smithy/python/aws/codegen/AwsAuthIntegration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,19 @@ public void customize(GenerationContext context) {
101101
writer.pushState();
102102

103103
writer.write("""
104-
def $1L(auth_params: $3T[Any, Any]) -> $4T | None:
105-
return $5T(
106-
scheme_id=$6T($2S),
104+
def $1L(auth_params: $2T[Any, Any]) -> $3T | None:
105+
return $4T(
106+
scheme_id=$5T($6S),
107107
identity_properties={}, # type: ignore
108108
signer_properties={} # type: ignore
109109
)
110110
""",
111111
SIGV4_OPTION_GENERATOR_NAME,
112-
SigV4Trait.ID.toString(),
113112
RuntimeTypes.AUTH_PARAMS,
114113
RuntimeTypes.AUTH_OPTION_INTERFACE,
115114
RuntimeTypes.AUTH_OPTION,
116-
RuntimeTypes.SHAPE_ID);
115+
RuntimeTypes.SHAPE_ID,
116+
SigV4Trait.ID.toString());
117117
writer.popState();
118118
});
119119
}

codegen/core/src/main/java/software/amazon/smithy/python/codegen/integrations/HttpApiKeyAuth.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ public void customize(GenerationContext context) {
8888
writer.addStdlibImport("typing", "Any");
8989
writer.pushState();
9090
writer.write("""
91-
def $1L(auth_params: $3T[Any, Any]) -> $4T | None:
92-
return $5T(
93-
scheme_id=$6T($2S),
91+
def $1L(auth_params: $2T[Any, Any]) -> $3T | None:
92+
return $4T(
93+
scheme_id=$5T($6S),
9494
identity_properties={}, # type: ignore
9595
signer_properties={}, # type: ignore
9696
)
9797
""",
9898
OPTION_GENERATOR_NAME,
99-
HttpApiKeyAuthTrait.ID.toString(),
10099
RuntimeTypes.AUTH_PARAMS,
101100
RuntimeTypes.AUTH_OPTION_INTERFACE,
102101
RuntimeTypes.AUTH_OPTION,
103-
RuntimeTypes.SHAPE_ID);
102+
RuntimeTypes.SHAPE_ID,
103+
HttpApiKeyAuthTrait.ID.toString());
104104
writer.popState();
105105
});
106106
}

0 commit comments

Comments
 (0)