Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Do not warn about shadowed fields if they are not redefined in a child class

#9111Merged
Comparing
chan-vince:bug/9107-improve-warning-on-parent-inherited-field
(
f42b70a
) with
main
(
e3b4633
)
CodSpeed Performance Gauge
0%
Untouched
10

Benchmarks

10 total
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+2%
22.6 ms22.2 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
22 ms22 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
34.9 ms34.9 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
305.9 ms306.3 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
36.4 ms36.4 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
16.9 ms16.9 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.3 ms52.5 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
43.7 ms43.9 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
52 ms52.3 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
28.8 ms29.1 ms

Commits

Click on a commit to change the comparison range
Base
main
e3b4633
+0.26%
Update comment to refer to warnings rather than errors
0770e1f
2 years ago
by chan-vince
-0.38%
Add a test for the warn/non-warn cases
ba177ef
2 years ago
by chan-vince
0%
improve test
f42b70a
2 years ago
by chan-vince
© 2026 CodSpeed Technology
Home Terms Privacy Docs