Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

fix: consolidate WrapSerializer warnings into a single UserWarning

#13093
Comparing
koushik717:fix/wrap-serializer-duplicate-warnings
(
2405313
) with
main
(
a6bf50b
)
CodSpeed Performance Gauge
+9%
Improvement
1
Untouched
214
Ignored
2

Benchmarks

217 total
test_field_function_validator
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+9%
343.3 µs314.4 µs
test_dataclass_to_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+4%
40.8 µs39.2 µs
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+4%
644.5 µs620.3 µs
test_arguments
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
24.4 µs23.5 µs
test_validate_literal[json-many_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
18.2 µs17.7 µs
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+3%
1.1 ms1.1 ms
test_validate_literal[json-many_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
18 µs17.5 µs
test_isinstance_string_strict_true
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.5 µs15.2 µs
test_validate_literal[json-many_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
17.5 µs17.1 µs
test_validate_literal[json-few_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
17.8 µs17.4 µs
test_validate_literal[json-few_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
18.1 µs17.7 µs
test_core_model_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
27.5 µs26.9 µs
test_enum_str_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.5 µs16.2 µs
test_uuid_from_uuid_pyd
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+2%
16.5 µs16.2 µs
test_dataclass_serialization_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
26 µs25.5 µs
test_date_from_date
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+2%
15.7 µs15.4 µs
test_isinstance_string_lax_false
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
17.3 µs17 µs
test_int_range_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
17.5 µs17.2 µs
test_json_any_list_int
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
201.6 µs198 µs
test_complete_core_json
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+2%
413.5 µs406.4 µs
test_core_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+2%
27.6 µs27.1 µs
test_isinstance_string_lax_true
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.5 µs15.3 µs
test_decimal_from_string_pyd
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+2%
34.5 µs33.9 µs
test_int_range
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.4 µs16.1 µs
test_isinstance_string_strict_false
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.9 µs16.6 µs

Commits

Click on a commit to change the comparison range
Base
main
a6bf50b
+9.14%
fix: consolidate WrapSerializer warnings into single UserWarning
3b54c41
24 days ago
by koushik717
+0.05%
style: apply cargo fmt to function.rs
2405313
24 days ago
by koushik717
© 2026 CodSpeed Technology
Home Terms Privacy Docs