- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_model_field_default_required (0.45 sec)
-
tests/test_compat.py
from pydantic import BaseConfig, BaseModel, ConfigDict from pydantic.fields import FieldInfo from .utils import needs_pydanticv1, needs_pydanticv2 @needs_pydanticv2 def test_model_field_default_required(): # For coverage field_info = FieldInfo(annotation=str) field = ModelField(name="foo", field_info=field_info) assert field.default is Undefined @needs_pydanticv1
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Sep 11 07:45:30 UTC 2024 - 3.5K bytes - Viewed (0)