Skip to content

Commit 075e21e

Browse files
committed
Updates based on feedback
1 parent 8000e36 commit 075e21e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
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] = [
@@ -221,7 +221,6 @@ raise ExpectationNotMetError("protocol and transport MUST be set on the config t
221221

222222
private void generateEventStreamOperation(PythonWriter writer, OperationShape operation) {
223223
writer.pushState(new OperationSection(service, operation));
224-
writer.addStdlibImport("copy", "deepcopy");
225224
writer.addDependency(SmithyPythonDependency.SMITHY_CORE);
226225
writer.addDependency(SmithyPythonDependency.SMITHY_AWS_CORE.withOptionalDependencies("eventstream"));
227226
var operationSymbol = symbolProvider.toSymbol(operation);

0 commit comments

Comments
 (0)