Skip to content

Commit 5b9716d

Browse files
authored
Fix missing deepcopy import for event stream operations (#589)
1 parent cb012c0 commit 5b9716d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ private void generateOperation(PythonWriter writer, OperationShape operation) {
131131
var outputSymbol = symbolProvider.toSymbol(output);
132132

133133
writer.pushState(new OperationSection(service, operation));
134-
writer.addStdlibImport("copy", "deepcopy");
135134
writer.putContext("input", inputSymbol);
136135
writer.putContext("output", outputSymbol);
137136
writer.putContext("plugin", pluginSymbol);
@@ -189,6 +188,7 @@ private void writeSharedOperationInit(PythonWriter writer, OperationShape operat
189188
writer.addImport("smithy_core.types", "TypedProperties");
190189
writer.addImport("smithy_core.aio.client", "RequestPipeline");
191190
writer.addImport("smithy_core.exceptions", "ExpectationNotMetError");
191+
writer.addStdlibImport("copy", "deepcopy");
192192

193193
writer.write("""
194194
operation_plugins: list[Plugin] = [

0 commit comments

Comments
 (0)