diff --git a/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt b/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt index 242b4a3acd2..c032ea9102f 100644 --- a/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt +++ b/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt @@ -144,6 +144,8 @@ class PythonApplicationGenerator( } } """, + "Protocol" to protocol.markerStruct(), + *codegenScope, ) } @@ -276,7 +278,6 @@ class PythonApplicationGenerator( self.start_hyper_worker(py, socket, event_loop, router, worker_number) } """, - "Protocol" to protocol.markerStruct(), *codegenScope, ) operations.map { operation ->