Skip to content

Commit 92bccd6

Browse files
committed
Fix minor generator issues
1 parent a678b9b commit 92bccd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private void writeAuthOptions(PythonWriter writer, List<AuthScheme> authSchemes)
149149
writer.putContext("authOptionInitializers", authOptionInitializers);
150150
writer.write("""
151151
${#authOptionInitializers}
152-
if ((option := ${value:T}(auth_parameters)) is not None):
152+
if (option := ${value:T}(auth_parameters)) is not None:
153153
auth_options.append(option)
154154
155155
${/authOptionInitializers}

codegen/core/src/main/java/software/amazon/smithy/python/codegen/generators/InitGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public void run() {
4343
context.writerDelegator()
4444
.useFileWriter(
4545
"%s/__init__.py".formatted(context.settings().moduleName()),
46-
w -> w.write("__version__: str = '$L'", context.settings().moduleVersion()));
46+
w -> w.write("__version__: str = \"$L\"", context.settings().moduleVersion()));
4747
}
4848
}

0 commit comments

Comments
 (0)