From 334bb918e4150f4e91240bcdb793811af95f56d1 Mon Sep 17 00:00:00 2001 From: Pedro Lobato <69770518+Lob26@users.noreply.github.com> Date: Tue, 10 Feb 2026 08:03:06 -0500 Subject: [PATCH] Update encoders.py --- fastapi/encoders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/encoders.py b/fastapi/encoders.py index d53d29117..742250c80 100644 --- a/fastapi/encoders.py +++ b/fastapi/encoders.py @@ -324,7 +324,7 @@ def jsonable_encoder( return encoded_dict if isinstance(obj, (Sequence, GeneratorType)): - encoded_list: List[Any] = [] + encoded_list = [] for item in obj: encoded_list.append( jsonable_encoder(