From 3bf416c0c431c90553ed329631f4198a964f7ade Mon Sep 17 00:00:00 2001 From: Peter Schutt Date: Sun, 25 Jun 2023 19:45:05 +1000 Subject: [PATCH] Remove defstruct module param workaround. Fixed in https://github.com/jcrist/msgspec/pull/445 --- litestar/_signature/models/msgspec_signature_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litestar/_signature/models/msgspec_signature_model.py b/litestar/_signature/models/msgspec_signature_model.py index 4a1b264606..7dcf01b035 100644 --- a/litestar/_signature/models/msgspec_signature_model.py +++ b/litestar/_signature/models/msgspec_signature_model.py @@ -140,7 +140,7 @@ def create( f"{fn_name}_signature_model", struct_fields, bases=(MsgspecSignatureModel,), - module=fn_module or "", + module=fn_module, namespace={ "return_annotation": parsed_signature.return_type.annotation, "dependency_name_set": dependency_names,