Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Only mark model as complete once all fields are complete

#11759Merged
Comparing
DouweM:model-fields-complete-mismatch
(
ed18a83
) with
main
(
eb295f2
)
CodSpeed Performance Gauge
0%
Untouched
46
Ignored
2

Benchmarks

48 total
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+1%
54.8 µs54.3 µs
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+1%
32.4 µs32.2 µs
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
50.6 µs50.3 µs
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
80.8 µs80.5 µs
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
22.9 ms22.9 ms
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
39.5 µs39.4 µs
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_failed_rebuild
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
214.2 µs213.8 µs
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
632.8 µs631.6 µs
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
38.6 ms38.6 ms
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
633.2 µs632.4 µs
test_getattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
0%
54.8 µs54.8 µs
test_setattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
0%
89.6 µs89.5 µs
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
44.5 µs44.5 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
84 ms84 ms
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
50.1 µs50.1 µs
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
38.6 ms38.6 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
38.1 ms38.1 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
19.6 ms19.6 ms
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
838 µs838.3 µs
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms

Commits

Click on a commit to change the comparison range
Base
main
eb295f2
-0.12%
Fix order of ns_resolver argument on complete_model_class
ed18a83
10 months ago
by DouweM
© 2026 CodSpeed Technology
Home Terms Privacy Docs