From b44d6c5a5264752434ec10f3a03c3308962c6247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 20 Dec 2025 15:51:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20unused=20util?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/_compat/v1.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fastapi/_compat/v1.py b/fastapi/_compat/v1.py index b0c75555d..b0a9dd35f 100644 --- a/fastapi/_compat/v1.py +++ b/fastapi/_compat/v1.py @@ -141,10 +141,6 @@ def is_pv1_scalar_field(field: ModelField) -> bool: return True -def _model_rebuild(model: type[BaseModel]) -> None: - model.update_forward_refs() - - def _model_dump( model: BaseModel, mode: Literal["json", "python"] = "json", **kwargs: Any ) -> Any: