Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ raise ExpectationNotMetError("protocol and transport MUST be set on the config t
private void generateEventStreamOperation(PythonWriter writer, OperationShape operation) {
writer.pushState(new OperationSection(service, operation));
writer.addDependency(SmithyPythonDependency.SMITHY_CORE);
writer.addDependency(SmithyPythonDependency.SMITHY_AWS_EVENT_STREAM);
var operationSymbol = symbolProvider.toSymbol(operation);
writer.putContext("operation", operationSymbol);
var operationMethodSymbol = operationSymbol.expectProperty(OPERATION_METHOD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public ApplicationProtocol getApplicationProtocol(GenerationContext context) {
@Override
public void initializeProtocol(GenerationContext context, PythonWriter writer) {
writer.addDependency(SmithyPythonDependency.SMITHY_AWS_CORE);
writer.addDependency(SmithyPythonDependency.SMITHY_JSON);
writer.addImport("smithy_aws_core.aio.protocols", "RestJsonClientProtocol");
var serviceSymbol = context.symbolProvider().toSymbol(context.settings().service(context.model()));
var serviceSchema = serviceSymbol.expectProperty(SymbolProperties.SCHEMA);
Expand Down
Loading