From 1db6afc2f21b1020311a6eaa146ed954402829c0 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 14 Oct 2025 19:50:07 +0200 Subject: [PATCH] fix definition of get_flat_models_from_fields in v1.py --- fastapi/_compat/v1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi/_compat/v1.py b/fastapi/_compat/v1.py index f0ac51634..e852ae277 100644 --- a/fastapi/_compat/v1.py +++ b/fastapi/_compat/v1.py @@ -54,9 +54,9 @@ if not PYDANTIC_V2: from pydantic.schema import TypeModelSet as TypeModelSet from pydantic.schema import ( field_schema, - get_flat_models_from_fields, model_process_schema, ) + from pydantic.schema import get_flat_models_from_fields as get_flat_models_from_fields from pydantic.schema import ( get_annotation_from_field_info as get_annotation_from_field_info, ) @@ -99,9 +99,9 @@ else: from pydantic.v1.schema import TypeModelSet as TypeModelSet from pydantic.v1.schema import ( field_schema, - get_flat_models_from_fields, model_process_schema, ) + from pydantic.v1.schema import get_flat_models_from_fields as get_flat_models_from_fields from pydantic.v1.schema import ( get_annotation_from_field_info as get_annotation_from_field_info, )