From f3a01033d6d8c26e1a1c9aa1058d174433799cef Mon Sep 17 00:00:00 2001 From: Ben Brady Date: Thu, 21 Aug 2025 22:10:29 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20changed=20encode=5Fdict=20parame?= =?UTF-8?q?ter=20typing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/encoders.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fastapi/encoders.py b/fastapi/encoders.py index acbd94e47..df6990089 100644 --- a/fastapi/encoders.py +++ b/fastapi/encoders.py @@ -350,7 +350,7 @@ def encode_value( def encode_dict( - obj: Any, + obj: Dict[Any, Any], include: Optional[IncEx] = None, exclude: Optional[IncEx] = None, by_alias: bool = True, @@ -375,7 +375,6 @@ def encode_dict( continue if key not in allowed_keys: continue - encoded_key = encode_value( key, by_alias=by_alias,