pydantic
pydantic
BlogDocsChangelog

added @classmethod to @model_validator(mode='before') in docs and acr…

#9410Merged
Comparing
paulmartin91:model-validator-classmethods
(
a9697ab
) with
main
(
07b6473
)
CodSpeed Performance Gauge
0%
Untouched
13

Benchmarks

Passed

test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
4.3 ms4.2 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
28.8 ms28.8 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
43.7 ms43.7 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
312.4 ms312.3 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.9 ms52.9 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.7 ms52.7 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
22.2 ms22.2 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
17.1 ms17.1 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
35 ms35.1 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
37.4 ms37.4 ms
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
953.4 µs954.7 µs
test_construct_schema
tests/benchmarks/test_schema_build.py
CodSpeed Performance Gauge
0%
5 ms5 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-3%
21.9 ms22.6 ms

Commits

Click on a commit to change the comparison range
Base
main
07b6473
-0.27%
added @classmethod to @model_validator(mode='before') in docs and across app
a9697ab
1 year ago
by paulmartin91
© 2025 CodSpeed Technology
Home Terms Privacy Docs