Browse Source

fix definition of get_flat_models_from_fields in v1.py

pull/14186/head
svlandeg 9 months ago
parent
commit
1db6afc2f2
  1. 4
      fastapi/_compat/v1.py

4
fastapi/_compat/v1.py

@ -54,9 +54,9 @@ if not PYDANTIC_V2:
from pydantic.schema import TypeModelSet as TypeModelSet from pydantic.schema import TypeModelSet as TypeModelSet
from pydantic.schema import ( from pydantic.schema import (
field_schema, field_schema,
get_flat_models_from_fields,
model_process_schema, model_process_schema,
) )
from pydantic.schema import get_flat_models_from_fields as get_flat_models_from_fields
from pydantic.schema import ( from pydantic.schema import (
get_annotation_from_field_info as get_annotation_from_field_info, 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 TypeModelSet as TypeModelSet
from pydantic.v1.schema import ( from pydantic.v1.schema import (
field_schema, field_schema,
get_flat_models_from_fields,
model_process_schema, model_process_schema,
) )
from pydantic.v1.schema import get_flat_models_from_fields as get_flat_models_from_fields
from pydantic.v1.schema import ( from pydantic.v1.schema import (
get_annotation_from_field_info as get_annotation_from_field_info, get_annotation_from_field_info as get_annotation_from_field_info,
) )

Loading…
Cancel
Save