From a189f2942ce9d329f424a0a247c4da50986e9f02 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Mon, 30 Nov 2026 21:26:22 +0300 Subject: [PATCH] Fix msgspec decoder typing with msgspec 0.23 --- src/httpware/decoders/msgspec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpware/decoders/msgspec.py b/src/httpware/decoders/msgspec.py index 5211994..5c7cd79 100644 --- a/src/httpware/decoders/msgspec.py +++ b/src/httpware/decoders/msgspec.py @@ -49,7 +49,7 @@ def _is_native(info: "msgspec.inspect.Type") -> bool: return True -def _build_adapter(model: object) -> "msgspec.json.Decoder[typing.Any] | None": +def _build_adapter(model: typing.Any) -> "msgspec.json.Decoder[typing.Any] | None": # noqa: ANN401 """Return a `msgspec.json.Decoder` for `model`, or None when msgspec cannot decode it natively. msgspec builds a Decoder for almost any class through its `CustomType`