Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Fixed type hint of validation context

#9508Merged
Comparing
OhioDschungel6:fix_context_type_hint
(
48063e6
) with
main
(
90d60bd
)
CodSpeed Performance Gauge
0%
Untouched
13

Benchmarks

13 total
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
37.4 ms37.3 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
17 ms17 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
23.7 ms23.7 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.7 ms52.6 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.9 ms52.9 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
35 ms35 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
43.8 ms43.8 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
312.4 ms312.2 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
22.1 ms22.1 ms
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
4.2 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_construct_schema
tests/benchmarks/test_schema_build.py
CodSpeed Performance Gauge
0%
5 ms5 ms
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
952.4 µs955.3 µs

Commits

Click on a commit to change the comparison range
Base
main
90d60bd
+0.06%
Fixed context typehint
5e2808c
2 years ago
by OhioDschungel6
-0.04%
Fixed context type hint in model_dump
48063e6
2 years ago
by OhioDschungel6
© 2026 CodSpeed Technology
Home Terms Privacy Docs