Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Make `@validate_call` return a function instead of a custom descriptor - fixes binding issue with inheritance and adds `self/cls` argument to validation errors

#8268Merged
Comparing
alexmojaki:validate-call-plain-function-wrapper
(
494bc53
) with
main
(
fd0dfff
)
CodSpeed Performance Gauge
0%
Untouched
10

Benchmarks

10 total
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-3%
23.1 ms23.8 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
37.3 ms37.6 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
223.2 ms223.8 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
72.9 ms73 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
38.6 ms38.7 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
74.2 ms74.1 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
39.4 ms39.5 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
668.7 ms668.3 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
15.6 ms15.6 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
18.2 ms18.2 ms

Commits

Click on a commit to change the comparison range
Base
main
fd0dfff
-0.42%
remove stale docstring part
494bc53
3 years ago
by alexmojaki
© 2026 CodSpeed Technology
Home Terms Privacy Docs