pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Use positional-only `self` in `BaseModel` constructor, so no field name can ever conflict with it.
#8072
Merged
Comparing
ariebovenberg:basemodel-self
(
4b3110a
) with
main
(
eb90b59
)
CodSpeed Performance Gauge
0%
Untouched
10
Benchmarks
Passed
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
38 ms
37.6 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
74.3 ms
73.8 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
72.9 ms
72.5 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
15.8 ms
15.8 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
215.3 ms
214.7 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
23.2 ms
23.2 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
39 ms
39 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
573.8 ms
574.5 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
36.7 ms
36.9 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
18.1 ms
18.3 ms
Commits
Click on a commit to change the comparison range
Base
main
eb90b59
+0.13%
Replace __pydantic_self__ with positional-only self
4b3110a
2 years ago
by ariebovenberg
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs