Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Add support for unpacked `TypedDict` to type hint variadic keyword arguments in `ArgumentsValidator`

#1451Merged
Comparing
kwargs-td
(
57467bd
) with
main
(
8c1a0da
)
CodSpeed Performance Gauge
0%
Untouched
155

Benchmarks

155 total
test_datetime
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+5%
27.7 µs26.5 µs
test_model_instance_abc
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-4%
32.1 µs33.4 µs
test_decimal_from_string_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+4%
33.3 µs32 µs
test_to_string_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-4%
23.3 µs24.3 µs
test_complete_core_isinstance
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+4%
1.8 ms1.7 ms
test_to_json_list_of_lists
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-3%
1.6 ms1.7 ms
test_complete_core_error
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+3%
1.8 ms1.8 ms
test_int_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
40.7 µs39.7 µs
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
30.1 µs30.7 µs
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
-2%
29.1 µs29.7 µs
test_generator_python
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
26.1 µs26.6 µs
test_core_root_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
37.3 µs36.6 µs
test_variable_tuple
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
18.8 µs19.1 µs
test_date_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
51 µs50.3 µs
test_smart_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
-1%
15.4 µs15.6 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
-1%
13.8 µs14 µs
test_strict_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
-1%
16.2 µs16.4 µs
test_arguments
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
25.8 µs26.1 µs
test_validate_literal[python-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.8 µs14.6 µs
test_date_format_function_no_info
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
50.2 µs49.7 µs
test_positional_tuple
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
19 µs19.2 µs
test_validate_literal[python-many_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
14.6 µs14.7 µs
test_validate_literal[json-few_mixed]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
18.5 µs18.3 µs
test_core_python_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+1%
74.8 µs74.1 µs
test_date_format_function
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
51.4 µs51 µs

Commits

Click on a commit to change the comparison range
Base
main
8c1a0da
-0.11%
Flatten everything under the arguments validator
1149fe4
2 years ago
by Viicos
+0.03%
Feedback
b9dbb34
2 years ago
by Viicos
+0.39%
Always validate if in unpack typed dict mode
99d3303
2 years ago
by Viicos
-0.35%
Update python/pydantic_core/core_schema.py
57467bd
2 years ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs